Skip to content

Commit

Permalink
Use SDL C runtime functions in OpenVR driver
Browse files Browse the repository at this point in the history
Fixes link errors when building with -DSDL_LIBC=OFF
  • Loading branch information
slouken committed Feb 22, 2025
1 parent 7224b40 commit 52e64f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/openvr/SDL_openvrvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,7 @@ static SDL_GLContext OPENVR_GL_CreateContext(SDL_VideoDevice *_this, SDL_Window

OPENVR_SetupFrame(_this, window);

SDL_GLContext result = malloc(sizeof(struct SDL_GLContextState));
SDL_GLContext result = SDL_malloc(sizeof(struct SDL_GLContextState));
if (!result) {
return NULL;
}
Expand Down

0 comments on commit 52e64f8

Please sign in to comment.