Skip to content

Commit

Permalink
Fix a compiler error caused by Windows compatibility fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juppi88 committed Jul 6, 2019
1 parent 4a6003c commit 3d48abd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mylly/renderer/opengl/extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;

PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElementsARB;

PFNGLACTIVETEXTUREPROC glActiveTexture;
#ifdef _WIN32
PFNGLACTIVETEXTUREARBPROC glActiveTexture;
#endif

// --------------------------------------------------------------------------------

Expand Down Expand Up @@ -140,7 +142,9 @@ bool glext_initialize(void)

glDrawRangeElementsARB = (PFNGLDRAWRANGEELEMENTSPROC)glext_get_method("glDrawRangeElements");

#ifdef _WIN32
glActiveTexture = (PFNGLACTIVETEXTUREPROC)glext_get_method("glActiveTexture");
#endif

return true;
}
Expand Down
2 changes: 2 additions & 0 deletions mylly/renderer/opengl/extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ extern PFNGLBLENDFUNCSEPARATEPROC glBlendFuncSeparate;

extern PFNGLDRAWRANGEELEMENTSPROC glDrawRangeElementsARB;

#ifdef _WIN32
extern PFNGLACTIVETEXTUREPROC glActiveTexture;
#endif

// --------------------------------------------------------------------------------

Expand Down

0 comments on commit 3d48abd

Please sign in to comment.