Browse Source

fix font colour issue (all text was showing up white regardless of font colour)

rdb 14 years ago
parent
commit
eaa31cc65b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/rocket/rocketRenderInterface.cxx

+ 1 - 1
panda/src/rocket/rocketRenderInterface.cxx

@@ -168,7 +168,7 @@ CompileGeometry(Rocket::Core::Vertex* vertices, int num_vertices, int* indices,
 
   if ((Texture*) texture != (Texture*) NULL) {
     PT(TextureStage) stage = new TextureStage("");
-    stage->set_mode(TextureStage::M_replace);
+    stage->set_mode(TextureStage::M_modulate);
 
     CPT(TextureAttrib) attr = DCAST(TextureAttrib, TextureAttrib::make());
     attr = DCAST(TextureAttrib, attr->add_on_stage(stage, (Texture*) texture));