(Lakka) Shut valgrind up
This commit is contained in:
parent
85cef84bd4
commit
91fea130eb
|
@ -667,7 +667,7 @@ static GLuint png_texture_load(const char * file_name)
|
||||||
texture_image_load(&ti, file_name);
|
texture_image_load(&ti, file_name);
|
||||||
|
|
||||||
/* Generate the OpenGL texture object */
|
/* Generate the OpenGL texture object */
|
||||||
GLuint texture;
|
GLuint texture = 0;
|
||||||
glGenTextures(1, &texture);
|
glGenTextures(1, &texture);
|
||||||
glBindTexture(GL_TEXTURE_2D, texture);
|
glBindTexture(GL_TEXTURE_2D, texture);
|
||||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, ti.width, ti.height, 0,
|
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, ti.width, ti.height, 0,
|
||||||
|
|
Loading…
Reference in New Issue