mirror of https://github.com/snes9xgit/snes9x.git
GTK+: OpenGL: Number of components is deprecated.
This commit is contained in:
parent
adca138f03
commit
1b61affbb5
|
@ -306,7 +306,7 @@ void S9xOpenGLDisplayDriver::update_texture_size (int width, int height)
|
||||||
{
|
{
|
||||||
glTexImage2D (GL_TEXTURE_2D,
|
glTexImage2D (GL_TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
4,
|
GL_RGBA,
|
||||||
width,
|
width,
|
||||||
height,
|
height,
|
||||||
0,
|
0,
|
||||||
|
@ -489,7 +489,7 @@ int S9xOpenGLDisplayDriver::opengl_defaults ()
|
||||||
glBindTexture (GL_TEXTURE_2D, texmap);
|
glBindTexture (GL_TEXTURE_2D, texmap);
|
||||||
glTexImage2D (GL_TEXTURE_2D,
|
glTexImage2D (GL_TEXTURE_2D,
|
||||||
0,
|
0,
|
||||||
config->pbo_format == 16 ? GL_RGB565 : 4,
|
config->pbo_format == 16 ? GL_RGB565 : GL_RGBA,
|
||||||
texture_width,
|
texture_width,
|
||||||
texture_height,
|
texture_height,
|
||||||
0,
|
0,
|
||||||
|
|
Loading…
Reference in New Issue