mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 08:28:29 +00:00
SDL3 with Hardware Acceleration for ROCKCHIP platform (mali blob)
This commit is contained in:
@@ -37,8 +37,9 @@
|
||||
void KMSDRM_GLES_DefaultProfileConfig(_THIS, int *mask, int *major, int *minor)
|
||||
{
|
||||
/* if SDL was _also_ built with the Raspberry Pi driver (so we're
|
||||
definitely a Pi device), default to GLES2. */
|
||||
#if SDL_VIDEO_DRIVER_RPI
|
||||
definitely a Pi device) or with the ROCKCHIP video driver
|
||||
(it's a ROCKCHIP device), default to GLES2. */
|
||||
#if defined(SDL_VIDEO_DRIVER_RPI) || defined(SDL_VIDEO_DRIVER_ROCKCHIP)
|
||||
*mask = SDL_GL_CONTEXT_PROFILE_ES;
|
||||
*major = 2;
|
||||
*minor = 0;
|
||||
|
@@ -302,7 +302,9 @@ static SDL_VideoDevice *KMSDRM_CreateDevice(void)
|
||||
return device;
|
||||
|
||||
cleanup:
|
||||
SDL_free(device);
|
||||
if (device) {
|
||||
SDL_free(device);
|
||||
}
|
||||
|
||||
if (viddata) {
|
||||
SDL_free(viddata);
|
||||
|
Reference in New Issue
Block a user