Go to file
Sam Lantinga a55e059f84 Set the texture palette before setting pixel data
This is a better fix for https://github.com/libsdl-org/SDL/issues/16227.

The original problem was that the newly created texture didn't have any palette, so when the surface data was set, colors couldn't be mapped to pixel index values. The old fix temporarily set the texture palette to the surface palette, copied the surface data, and then set the texture palette to a copy of the surface palette. This caused Vulkan validation errors because we were deleting the original palette which was still referenced by the active command buffer. Instead, we'll create the palette that we want the texture to have to start with, then copy the surface data once that's set.
2026-09-09 10:21:23 -07:00
2026-08-21 01:29:21 +02:00
2026-09-09 10:21:23 -07:00
2026-09-09 10:21:23 -07:00
2025-01-13 16:42:50 -08:00
2026-09-09 06:29:23 -07:00
2025-01-13 16:42:50 -08:00
2025-03-06 16:25:17 -08:00
2026-01-01 09:40:08 -08:00
2025-11-16 01:15:10 +03:00

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)

Description
Simple Directmedia Layer
Readme 251 MiB
Languages
C 87.6%
C++ 4.3%
Objective-C 3.4%
CMake 1.8%
Java 0.7%
Other 2%