Selaa lähdekoodia

Put error message in a debug conditional.

aignacio_sf 19 vuotta sitten
vanhempi
sitoutus
f85cb72f33
1 muutettua tiedostoa jossa 5 lisäystä ja 3 poistoa
  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 {