GTK+: OpenGL: Number of components is deprecated.

This commit is contained in:
Brandon Wright 2018-11-30 15:35:19 -06:00
parent adca138f03
commit 1b61affbb5

View File

@ -306,7 +306,7 @@ void S9xOpenGLDisplayDriver::update_texture_size (int width, int height)
{
glTexImage2D (GL_TEXTURE_2D,
0,
4,
GL_RGBA,
width,
height,
0,
@ -489,7 +489,7 @@ int S9xOpenGLDisplayDriver::opengl_defaults ()
glBindTexture (GL_TEXTURE_2D, texmap);
glTexImage2D (GL_TEXTURE_2D,
0,
config->pbo_format == 16 ? GL_RGB565 : 4,
config->pbo_format == 16 ? GL_RGB565 : GL_RGBA,
texture_width,
texture_height,
0,