OpenGL: assume GL_TEXTURE_ENV_MODE GL_MODULATE is the default state.
This commit is contained in:
@@ -486,8 +486,6 @@ static int wm_triple_gen_textures(wmWindow *win, wmDrawTriple *triple)
|
||||
glTexImage2D(triple->target, 0, GL_RGB8, triple->x[x], triple->y[y], 0, GL_RGB, GL_UNSIGNED_BYTE, NULL);
|
||||
glTexParameteri(triple->target, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
|
||||
glTexParameteri(triple->target, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
|
||||
/* The current color is ignored if the GL_REPLACE texture environment is used. */
|
||||
// glTexEnvi(triple->target, GL_TEXTURE_ENV_MODE, GL_REPLACE);
|
||||
glBindTexture(triple->target, 0);
|
||||
|
||||
/* not sure if this works everywhere .. */
|
||||
|
||||
Reference in New Issue
Block a user