Browse Source

glgsg: Fix error message if vtx_normal is declred as float4 in Cg

rdb 5 years ago
parent
commit
d1e8554fde
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/glstuff/glCgShaderContext_src.cxx

+ 1 - 1
panda/src/glstuff/glCgShaderContext_src.cxx

@@ -166,7 +166,7 @@ CLP(CgShaderContext)(CLP(GraphicsStateGuardian) *glgsg, Shader *s) : ShaderConte
             if (cgGetParameterSemantic(p)) {
               GLCAT.error(false) << " : " << cgGetParameterSemantic(p);
             }
-            GLCAT.error(false) << " should be declared as float4, not float3!\n";
+            GLCAT.error(false) << " should be declared as float3, not float4!\n";
           }
           break;
         case 3:  // gl_Color