Remove (comment out) hard coded tex->set_format(Texture::F_rgba); So that the texture format can be selected externally via Texture.set_format().

This commit is contained in:
aignacio_sf 2008-04-18 19:19:48 +00:00
parent c7256fc872
commit 1dc357a7f1
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ bind_slot(bool rb_resize, Texture **attach, RenderTexturePlane slot, GLenum atta
}
}
} else {
tex->set_format(Texture::F_rgba);
// tex->set_format(Texture::F_rgba);
TextureContext *tc = tex->prepare_now(glgsg->get_prepared_objects(), glgsg);
nassertv(tc != (TextureContext *)NULL);
CLP(TextureContext) *gtc = DCAST(CLP(TextureContext), tc);