mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 02:15:36 +00:00
Pandora: use SDL_malloc
This commit is contained in:
parent
10ffcbb115
commit
79b37cc55f
|
@ -612,7 +612,7 @@ PND_gl_createcontext(_THIS, SDL_Window * window)
|
||||||
|
|
||||||
#ifdef WIZ_GLES_LITE
|
#ifdef WIZ_GLES_LITE
|
||||||
if( !hNativeWnd ) {
|
if( !hNativeWnd ) {
|
||||||
hNativeWnd = (NativeWindowType)malloc(16*1024);
|
hNativeWnd = (NativeWindowType)SDL_malloc(16*1024);
|
||||||
|
|
||||||
if(!hNativeWnd)
|
if(!hNativeWnd)
|
||||||
printf( "Error: Wiz framebuffer allocatation failed\n" );
|
printf( "Error: Wiz framebuffer allocatation failed\n" );
|
||||||
|
@ -819,7 +819,7 @@ PND_gl_deletecontext(_THIS, SDL_GLContext context)
|
||||||
#ifdef WIZ_GLES_LITE
|
#ifdef WIZ_GLES_LITE
|
||||||
if( hNativeWnd != 0 )
|
if( hNativeWnd != 0 )
|
||||||
{
|
{
|
||||||
free(hNativeWnd);
|
SDL_free(hNativeWnd);
|
||||||
hNativeWnd = 0;
|
hNativeWnd = 0;
|
||||||
printf( "SDL: Wiz framebuffer released\n" );
|
printf( "SDL: Wiz framebuffer released\n" );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue