Mercurial > repos > blastem
comparison nuklear_ui/nuklear_sdl_gles2.h @ 2031:0757da8ee702
Fix some stuff that was calling printf directly
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 20 Feb 2021 14:51:45 -0800 |
parents | 579fe3f6fe76 |
children | 1838b0b8f4ff |
comparison
equal
deleted
inserted
replaced
2030:bcc85f6b06c2 | 2031:0757da8ee702 |
---|---|
164 struct nk_sdl_device *dev = &sdl.ogl; | 164 struct nk_sdl_device *dev = &sdl.ogl; |
165 glGenTextures(1, &dev->font_tex); | 165 glGenTextures(1, &dev->font_tex); |
166 glBindTexture(GL_TEXTURE_2D, dev->font_tex); | 166 glBindTexture(GL_TEXTURE_2D, dev->font_tex); |
167 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); | 167 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); |
168 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); | 168 glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); |
169 printf("Creating texture atlas texture with size %dx%d\n", width, height); | |
170 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, (GLsizei)width, (GLsizei)height, 0, | 169 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, (GLsizei)width, (GLsizei)height, 0, |
171 GL_RGBA, GL_UNSIGNED_BYTE, image); | 170 GL_RGBA, GL_UNSIGNED_BYTE, image); |
172 GLenum err = glGetError(); | 171 GLenum err = glGetError(); |
173 if (err != GL_NO_ERROR) { | 172 if (err != GL_NO_ERROR) { |
174 printf("glTexImage2D failed with error %d\n", err); | 173 printf("glTexImage2D failed with error %d\n", err); |