Browse Source

fix type-oh

rdb 13 years ago
parent
commit
252b7bc656
1 changed files with 1 additions and 1 deletions
  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++) {
   for (int i=0; i<_num_textures; i++) {
     TextureStage *stage = texture->get_on_stage(i);
     TextureStage *stage = texture->get_on_stage(i);
     switch (stage->get_mode()) {
     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();
       int num_components = texture->get_on_texture(texture->get_on_stage(i))->get_num_components();
 
 
       if (num_components == 1) {
       if (num_components == 1) {