浏览代码

fix for running gles2 with sdl on desktop (#3542)

pull/3552/head
_Tradam 1年前
committed by GitHub
父节点
当前提交
e41a0c9721
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. +7
    -0
      src/platforms/rcore_desktop_sdl.c

+ 7
- 0
src/platforms/rcore_desktop_sdl.c 查看文件

@ -49,7 +49,14 @@
**********************************************************************************************/
#include "SDL.h" // SDL base library (window/rendered, input, timming... functionality)
#ifdef GRAPHICS_API_OPENGL_ES2
// I suspect that the gles2 version of the SDL header should be used
// but the compilation fails if we do. Not including anything appears
// to work fine.
//#include "SDL_opengles2.h"
#else
#include "SDL_opengl.h" // SDL OpenGL functionality (if required, instead of internal renderer)
#endif
//----------------------------------------------------------------------------------
// Types and Structures Definition

||||||
x
 
000:0
正在加载...
取消
保存