mirror of
https://github.com/panda3d/panda3d.git
synced 2026-02-11 17:49:01 -06:00
fix font colour issue (all text was showing up white regardless of font colour)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user