Ver código fonte

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

pull/3552/head
_Tradam 2 anos atrás
committed by GitHub
pai
commit
e41a0c9721
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: 4AEE18F83AFDEB23
1 arquivos alterados com 7 adições e 0 exclusões
  1. +7
    -0
      src/platforms/rcore_desktop_sdl.c

+ 7
- 0
src/platforms/rcore_desktop_sdl.c Ver arquivo

@ -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

Carregando…
Cancelar
Salvar