Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Check the return value of glGenTextures()

  • Loading branch information
slouken committed Aug 10, 2013
1 parent be730de commit 2a36e610645aeb9f9e04794dbabf2262acff6d31

File 2 of 3 in 2a36e61

@@ -475,6 +475,11 @@ GLES_CreateTexture(SDL_Renderer * renderer, SDL_Texture * texture)
renderdata->glGetError();
renderdata->glEnable(GL_TEXTURE_2D);
renderdata->glGenTextures(1, &data->texture);
result = renderdata->glGetError();
if (result != GL_NO_ERROR) {
SDL_free(data);
return GLES_SetError("glGenTextures()", result);
}

data->type = GL_TEXTURE_2D;
/* no NPOV textures allowed in OpenGL ES (yet) */

0 comments on commit 2a36e61

Please sign in to comment.