summaryrefslogtreecommitdiff
path: root/nuklear_ui/nuklear_sdl_gles2.h
diff options
context:
space:
mode:
Diffstat (limited to 'nuklear_ui/nuklear_sdl_gles2.h')
-rw-r--r--nuklear_ui/nuklear_sdl_gles2.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/nuklear_ui/nuklear_sdl_gles2.h b/nuklear_ui/nuklear_sdl_gles2.h
index 9dd3852..d7f2151 100644
--- a/nuklear_ui/nuklear_sdl_gles2.h
+++ b/nuklear_ui/nuklear_sdl_gles2.h
@@ -166,8 +166,13 @@ nk_sdl_device_upload_atlas(const void *image, int width, int height)
glBindTexture(GL_TEXTURE_2D, dev->font_tex);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ printf("Creating texture atlas texture with size %dx%d\n", width, height);
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, (GLsizei)width, (GLsizei)height, 0,
GL_RGBA, GL_UNSIGNED_BYTE, image);
+ GLenum err = glGetError();
+ if (err != GL_NO_ERROR) {
+ printf("glTexImage2D failed with error %d\n", err);
+ }
}
NK_API void