Skip to content

Commit

Permalink
fix for emscripten and ofFbo (#6697)
Browse files Browse the repository at this point in the history
#changelog #emscripten
  • Loading branch information
NickHardeman authored Mar 2, 2021
1 parent 119adff commit 0ccbc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/openFrameworks/gl/ofFbo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ using namespace std;
*/

#ifdef TARGET_OPENGLES
#if defined(TARGET_OPENGLES) & !defined(TARGET_EMSCRIPTEN)
bool ofFbo::bglFunctionsInitialized=false;

typedef void (* glGenFramebuffersType) (GLsizei n, GLuint* framebuffers);
Expand Down Expand Up @@ -237,7 +237,7 @@ dirty(false),
defaultTextureIndex(0),
bIsAllocated(false)
{
#ifdef TARGET_OPENGLES
#if defined(TARGET_OPENGLES) & !defined(TARGET_EMSCRIPTEN)
if(!bglFunctionsInitialized){
if(ofIsGLProgrammableRenderer()){
glGenFramebuffers = (glGenFramebuffersType)dlsym(RTLD_DEFAULT, "glGenFramebuffers");
Expand Down

0 comments on commit 0ccbc18

Please sign in to comment.