mirror of
https://github.com/raysan5/raylib.git
synced 2026-05-13 17:04:31 +00:00
Use rlgl provided interface instead of rlsw direct access
This commit is contained in:
@@ -1132,8 +1132,8 @@ void SwapScreenBuffer(void)
|
||||
{
|
||||
if (platform.surface)
|
||||
{
|
||||
// copy rlsw pixel data to the surface framebuffer
|
||||
swReadPixels(0, 0, platform.surfaceWidth, platform.surfaceHeight, SW_RGBA, SW_UNSIGNED_BYTE, platform.surfacePixels);
|
||||
// Copy rlsw pixel data to the surface framebuffer
|
||||
rlCopyFramebuffer(0, 0, platform.surfaceWidth, platform.surfaceHeight, PIXELFORMAT_UNCOMPRESSED_R8G8B8A8, platform.surfacePixels);
|
||||
|
||||
// Mac wants a different pixel order. I cant seem to get this to work any other way
|
||||
#if defined(__APPLE__)
|
||||
|
||||
Reference in New Issue
Block a user