Skip to content

Commit

Permalink
Fix building of raylib_opengl_interop on PLATFORM_DESKTOP_SDL (#3826)
Browse files Browse the repository at this point in the history
I tested this with CMake. I don't know if the examples makefile
currently handles this case.
  • Loading branch information
Peter0x44 authored Feb 26, 2024
1 parent 53cfc7c commit 1df91e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/others/raylib_opengl_interop.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "raylib.h"

#if defined(PLATFORM_DESKTOP)
#if defined(PLATFORM_DESKTOP) || defined(PLATFORM_DESKTOP_SDL)
#if defined(GRAPHICS_API_OPENGL_ES2)
#include "glad_gles2.h" // Required for: OpenGL functionality
#define glGenVertexArrays glGenVertexArraysOES
Expand Down Expand Up @@ -163,4 +163,4 @@ int main(void)
//--------------------------------------------------------------------------------------

return 0;
}
}

0 comments on commit 1df91e7

Please sign in to comment.