twn_gl_15_rendering.c: don't assume seethrough triangle textures, infer actual usage
This commit is contained in:
parent
d163e0f7ae
commit
9efcd79ba6
@ -74,13 +74,7 @@ void use_space_pipeline(void) {
|
||||
glDisable(GL_DEPTH_CLAMP);
|
||||
|
||||
glEnable(GL_CULL_FACE);
|
||||
glEnable(GL_DEPTH_TEST);
|
||||
glDepthMask(GL_TRUE);
|
||||
glDepthFunc(GL_LESS);
|
||||
glDepthRange(0, 1);
|
||||
glDisable(GL_BLEND);
|
||||
glEnable(GL_ALPHA_TEST); /* TODO: infer its usage? */
|
||||
glAlphaFunc(GL_EQUAL, 1.0f);
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
glActiveTexture(GL_TEXTURE0);
|
||||
|
||||
@ -413,6 +407,8 @@ void finally_draw_uncolored_space_traingle_batch(const MeshBatch *batch,
|
||||
|
||||
textures_bind(&ctx.texture_cache, texture_key);
|
||||
|
||||
use_texture_mode(textures_get_mode(&ctx.texture_cache, texture_key));
|
||||
|
||||
glBindBuffer(GL_ARRAY_BUFFER, buffer);
|
||||
|
||||
/* vertex specification*/
|
||||
|
Loading…
Reference in New Issue
Block a user