diff options
| author | Ray <raysan5@gmail.com> | 2017-09-26 00:51:26 +0200 |
|---|---|---|
| committer | Ray <raysan5@gmail.com> | 2017-09-26 00:51:31 +0200 |
| commit | 2068037417f44c2d86bd15e4ce6631e2faf662de (patch) | |
| tree | f40e95da7aa7a65ec637b8129bf8d8032be8326b /src | |
| parent | ed9744756e03213949825ba51786a02492a6da55 (diff) | |
| download | raylib-2068037417f44c2d86bd15e4ce6631e2faf662de.tar.gz raylib-2068037417f44c2d86bd15e4ce6631e2faf662de.zip | |
Code tweak
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.c | 1 | ||||
| -rw-r--r-- | src/textures.c | 2 |
2 files changed, 1 insertions, 2 deletions
@@ -2212,7 +2212,6 @@ void *rlReadTexturePixels(Texture2D texture) // 2 - Create an fbo, activate it, render quad with texture, glReadPixels() #define GET_TEXTURE_FBO_OPTION_1 // It works - #if defined(GET_TEXTURE_FBO_OPTION_1) glBindFramebuffer(GL_FRAMEBUFFER, fbo.id); glBindTexture(GL_TEXTURE_2D, 0); diff --git a/src/textures.c b/src/textures.c index b6c90ad7..b9fc5c19 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1068,7 +1068,7 @@ Image ImageTextEx(SpriteFont font, const char *text, float fontSize, int spacing Vector2 imSize = MeasureTextEx(font, text, font.baseSize, spacing); - // NOTE: GetTextureData() not available in OpenGL ES + // NOTE: glGetTexImage() not available in OpenGL ES Image imFont = GetTextureData(font.texture); ImageFormat(&imFont, UNCOMPRESSED_R8G8B8A8); // Convert to 32 bit for color tint |
