Skip to content

Commit

Permalink
ofTexture more straightforward way to see if it support GL_RGB16F
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre committed Nov 25, 2024
1 parent 4f6a1ae commit db16346
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions libs/openFrameworks/gl/ofTexture.h
Original file line number Diff line number Diff line change
Expand Up @@ -177,13 +177,12 @@ class ofTextureData {
glInternalFormat = GL_RGB8;
textureTarget = GL_TEXTURE_RECTANGLE_ARB;
#elif defined(TARGET_OPENGLES)
if(ofGLESVersionFromGL() >= 300) {
glInternalFormat = GL_RGB16F;
textureTarget = GL_TEXTURE_2D;
} else {
glInternalFormat = GL_RGB;
textureTarget = GL_TEXTURE_2D;
}
#if defined(GL_RGB16F)
glInternalFormat = GL_RGB16F;
#else
glInternalFormat = GL_RGB;
#endif
textureTarget = GL_TEXTURE_2D;
#endif

tex_t = 0;
Expand Down

0 comments on commit db16346

Please sign in to comment.