mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 03:18:13 +00:00
Use SDL C runtime functions in OpenVR driver
Fixes link errors when building with -DSDL_LIBC=OFF
This commit is contained in:
@@ -911,7 +911,7 @@ static SDL_GLContext OPENVR_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window
|
|||||||
|
|
||||||
OPENVR_SetupFrame(_this, window);
|
OPENVR_SetupFrame(_this, window);
|
||||||
|
|
||||||
SDL_GLContext result = malloc(sizeof(struct SDL_GLContextState));
|
SDL_GLContext result = SDL_malloc(sizeof(struct SDL_GLContextState));
|
||||||
if (!result) {
|
if (!result) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user