summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2021-02-20 14:51:45 -0800
committerMichael Pavone <pavone@retrodev.com>2021-02-20 14:51:45 -0800
commit472da34d7ac2915a4f21ea6b5c02475abc3619e3 (patch)
tree8113eb2113e9ae759d4e76839bc60cb62cc8cb34
parentbb5b3179fd704f53af1f75a02b3faf7cec9b7407 (diff)
Fix some stuff that was calling printf directly
-rw-r--r--nuklear_ui/nuklear_sdl_gles2.h1
-rwxr-xr-xrender_sdl.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/nuklear_ui/nuklear_sdl_gles2.h b/nuklear_ui/nuklear_sdl_gles2.h
index d7f2151..639e2de 100644
--- a/nuklear_ui/nuklear_sdl_gles2.h
+++ b/nuklear_ui/nuklear_sdl_gles2.h
@@ -166,7 +166,6 @@ 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();
diff --git a/render_sdl.c b/render_sdl.c
index 4099d5d..c0fe585 100755
--- a/render_sdl.c
+++ b/render_sdl.c
@@ -406,7 +406,7 @@ static void gl_setup()
} else {
tex_width = tex_height = 512;
}
- printf("Using %dx%d textures\n", tex_width, tex_height);
+ debug_message("Using %dx%d textures\n", tex_width, tex_height);
for (int i = 0; i < 3; i++)
{
glBindTexture(GL_TEXTURE_2D, textures[i]);