mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-28 09:31:36 +00:00
Added SDL_CreateSurfaceUninitialized()
Currently this is an internal API, but we can expose it in the future.
This commit is contained in:
@@ -958,7 +958,7 @@ static SDL_Surface *GLES_RenderReadPixels(SDL_Renderer *renderer, const SDL_Rect
|
||||
SDL_PixelFormat format = renderer->target ? renderer->target->format : SDL_PIXELFORMAT_RGBA32;
|
||||
SDL_Surface *surface;
|
||||
|
||||
surface = SDL_CreateSurface(rect->w, rect->h, format);
|
||||
surface = SDL_CreateSurfaceUninitialized(rect->w, rect->h, format);
|
||||
if (!surface) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user