Fix defines

This commit is contained in:
Ivan Epifanov 2021-01-11 23:54:56 +03:00 committed by Sam Lantinga
parent c7cec2c792
commit 23db5381a3

View File

@ -38,7 +38,7 @@
#include "SDL_vitakeyboard.h" #include "SDL_vitakeyboard.h"
#include "SDL_vitamouse_c.h" #include "SDL_vitamouse_c.h"
#include "SDL_vitaframebuffer.h" #include "SDL_vitaframebuffer.h"
#if SDLVIDEO_OPENGL_ES2 #if SDL_VIDEO_OPENGL_ES2
#include "SDL_vitagl_c.h" #include "SDL_vitagl_c.h"
#endif #endif
#include <psp2/ime_dialog.h> #include <psp2/ime_dialog.h>
@ -62,7 +62,7 @@ VITA_Create()
{ {
SDL_VideoDevice *device; SDL_VideoDevice *device;
SDL_VideoData *phdata; SDL_VideoData *phdata;
#if SDLVIDEO_OPENGL_ES2 #if SDL_VIDEO_OPENGL_ES2
SDL_GLDriverData *gldata; SDL_GLDriverData *gldata;
#endif #endif
/* Initialize SDL_VideoDevice structure */ /* Initialize SDL_VideoDevice structure */
@ -79,7 +79,7 @@ VITA_Create()
SDL_free(device); SDL_free(device);
return NULL; return NULL;
} }
#if SDLVIDEO_OPENGL_ES2 #if SDL_VIDEO_OPENGL_ES2
gldata = (SDL_GLDriverData *) SDL_calloc(1, sizeof(SDL_GLDriverData)); gldata = (SDL_GLDriverData *) SDL_calloc(1, sizeof(SDL_GLDriverData));
if (gldata == NULL) { if (gldata == NULL) {