Code tweak
This commit is contained in:
parent
ed9744756e
commit
2068037417
2 changed files with 1 additions and 2 deletions
|
@ -2212,7 +2212,6 @@ void *rlReadTexturePixels(Texture2D texture)
|
||||||
// 2 - Create an fbo, activate it, render quad with texture, glReadPixels()
|
// 2 - Create an fbo, activate it, render quad with texture, glReadPixels()
|
||||||
|
|
||||||
#define GET_TEXTURE_FBO_OPTION_1 // It works
|
#define GET_TEXTURE_FBO_OPTION_1 // It works
|
||||||
|
|
||||||
#if defined(GET_TEXTURE_FBO_OPTION_1)
|
#if defined(GET_TEXTURE_FBO_OPTION_1)
|
||||||
glBindFramebuffer(GL_FRAMEBUFFER, fbo.id);
|
glBindFramebuffer(GL_FRAMEBUFFER, fbo.id);
|
||||||
glBindTexture(GL_TEXTURE_2D, 0);
|
glBindTexture(GL_TEXTURE_2D, 0);
|
||||||
|
|
|
@ -1068,7 +1068,7 @@ Image ImageTextEx(SpriteFont font, const char *text, float fontSize, int spacing
|
||||||
|
|
||||||
Vector2 imSize = MeasureTextEx(font, text, font.baseSize, 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);
|
Image imFont = GetTextureData(font.texture);
|
||||||
|
|
||||||
ImageFormat(&imFont, UNCOMPRESSED_R8G8B8A8); // Convert to 32 bit for color tint
|
ImageFormat(&imFont, UNCOMPRESSED_R8G8B8A8); // Convert to 32 bit for color tint
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue