rdb 13 lat temu
rodzic
commit
252b7bc656
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      panda/src/pgraphnodes/shaderGenerator.cxx

+ 1 - 1
panda/src/pgraphnodes/shaderGenerator.cxx

@@ -1267,7 +1267,7 @@ synthesize_shader(const RenderState *rs) {
   for (int i=0; i<_num_textures; i++) {
     TextureStage *stage = texture->get_on_stage(i);
     switch (stage->get_mode()) {
-    case TextureStage::M_modulate:
+    case TextureStage::M_modulate: {
       int num_components = texture->get_on_texture(texture->get_on_stage(i))->get_num_components();
 
       if (num_components == 1) {