Browse Source

Put error message in a debug conditional.

aignacio_sf 19 years ago
parent
commit
f85cb72f33
1 changed files with 5 additions and 3 deletions
  1. 5 3
      panda/src/dxgsg9/dxShaderContext9.cxx

+ 5 - 3
panda/src/dxgsg9/dxShaderContext9.cxx

@@ -988,9 +988,11 @@ update_shader_vertex_arrays(CLP(ShaderContext) *prev, GSG *gsg)
                 dxgsg9_cat.debug() << "|||||cgD3D9ValidateVertexDeclaration succeeded\n";
               }
               else {
-                dxgsg9_cat.error() << "********************************************\n";
-                dxgsg9_cat.error() << "***cgD3D9ValidateVertexDeclaration failed***\n";
-                dxgsg9_cat.error() << "********************************************\n";
+                DBG_SH2
+                  dxgsg9_cat.error() << "********************************************\n";
+                  dxgsg9_cat.error() << "***cgD3D9ValidateVertexDeclaration failed***\n";
+                  dxgsg9_cat.error() << "********************************************\n";
+                DBG_E
               }
             }
             else {