Selaa lähdekoodia

build: use GLES (not GL) when using emscripten, and disable SdlInput too.

legacy
Sam Hocevar sam 12 vuotta sitten
vanhempi
commit
551fea7ed7
2 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. +5
    -0
      src/lolgl.h
  2. +3
    -0
      src/platform/sdl/sdlapp.cpp

+ 5
- 0
src/lolgl.h Näytä tiedosto

@@ -18,6 +18,11 @@


#define GL_GLEXT_PROTOTYPES #define GL_GLEXT_PROTOTYPES


/* Prefer GLES on browsers */
#if defined EMSCRIPTEN
# undef HAVE_GL_2X
#endif

/* Only define one GL platform */ /* Only define one GL platform */
#if defined HAVE_GL_2X #if defined HAVE_GL_2X
# undef HAVE_GLES_2X # undef HAVE_GLES_2X


+ 3
- 0
src/platform/sdl/sdlapp.cpp Näytä tiedosto

@@ -100,7 +100,10 @@ SdlApp::SdlApp(char const *title, ivec2 res, float fps) :
* advertised with the proper number of axes. */ * advertised with the proper number of axes. */
new D3d9Input(); new D3d9Input();
# endif # endif

# if !defined EMSCRIPTEN
new SdlInput(); new SdlInput();
# endif
#endif #endif
} }




||||||
x
 
000:0
Ladataan…
Peruuta
Tallenna