mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 14:08:42 +00:00
Fixed: EVSSecondaryColorVariant redefined several times in setupEXTVertexShader
This commit is contained in:
parent
a1fb2c502a
commit
23256f334d
1 changed files with 13 additions and 5 deletions
|
@ -393,7 +393,8 @@ bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint
|
|||
// clear last error
|
||||
GLenum glError = glGetError();
|
||||
|
||||
//variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
//variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
//variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
|
||||
// allocate the symbols
|
||||
nglBindVertexShaderEXT(id);
|
||||
|
@ -411,7 +412,8 @@ bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint
|
|||
// allocate needed variants
|
||||
if (CVPParser::isInputUsed(program, CVPOperand::ISecondaryColor))
|
||||
{
|
||||
variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
|
||||
if (!variants[EVSSecondaryColorVariant])
|
||||
{
|
||||
nlwarning("EXT_vertex_shader : can't allocate variant for secondary color");
|
||||
|
@ -422,9 +424,11 @@ bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint
|
|||
{
|
||||
variants[EVSSecondaryColorVariant] = 0;
|
||||
}
|
||||
|
||||
if (CVPParser::isInputUsed(program, CVPOperand::IFogCoord))
|
||||
{
|
||||
variants[EVSFogCoordsVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);
|
||||
variants[EVSFogCoordsVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);
|
||||
|
||||
if (!variants[EVSFogCoordsVariant])
|
||||
{
|
||||
nlwarning("EXT_vertex_shader : can't allocate variant for fog coords");
|
||||
|
@ -435,9 +439,11 @@ bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint
|
|||
{
|
||||
variants[EVSFogCoordsVariant] = 0;
|
||||
}
|
||||
|
||||
if (CVPParser::isInputUsed(program, CVPOperand::IWeight))
|
||||
{
|
||||
variants[EVSSkinWeightVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_NORMALIZED_RANGE_EXT, 1);
|
||||
variants[EVSSkinWeightVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);
|
||||
|
||||
if (!variants[EVSSkinWeightVariant])
|
||||
{
|
||||
nlwarning("EXT_vertex_shader : can't allocate variant for skin weight");
|
||||
|
@ -448,9 +454,11 @@ bool CDriverGL::setupEXTVertexShader(const CVPParser::TProgram &program, GLuint
|
|||
{
|
||||
variants[EVSSkinWeightVariant] = 0;
|
||||
}
|
||||
|
||||
if (CVPParser::isInputUsed(program, CVPOperand::IPaletteSkin))
|
||||
{
|
||||
variants[EVSPaletteSkinVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);variants[EVSSecondaryColorVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);
|
||||
variants[EVSPaletteSkinVariant] = nglGenSymbolsEXT(GL_VECTOR_EXT, GL_VARIANT_EXT, GL_FULL_RANGE_EXT, 1);
|
||||
|
||||
if (!variants[EVSPaletteSkinVariant])
|
||||
{
|
||||
nlwarning("EXT_vertex_shader : can't allocate variant for palette skin");
|
||||
|
|
Loading…
Reference in a new issue