Removed stb_image.h from SDL
This adds quite a bit of code size to SDL for a niche use-case. This is easily handled in the application instead.
This commit is contained in:
parent
9308404e9a
commit
cf41ccc6ce
12 changed files with 16 additions and 8217 deletions
|
@ -1282,14 +1282,7 @@ static SDL_PixelFormat GetClosestSupportedFormat(SDL_Renderer *renderer, SDL_Pix
|
|||
{
|
||||
int i;
|
||||
|
||||
if (format == SDL_PIXELFORMAT_MJPG) {
|
||||
// We'll decode to SDL_PIXELFORMAT_RGBA32
|
||||
for (i = 0; i < renderer->num_texture_formats; ++i) {
|
||||
if (renderer->texture_formats[i] == SDL_PIXELFORMAT_RGBA32) {
|
||||
return renderer->texture_formats[i];
|
||||
}
|
||||
}
|
||||
} else if (SDL_ISPIXELFORMAT_FOURCC(format)) {
|
||||
if (SDL_ISPIXELFORMAT_FOURCC(format)) {
|
||||
// Look for an exact match
|
||||
for (i = 0; i < renderer->num_texture_formats; ++i) {
|
||||
if (renderer->texture_formats[i] == format) {
|
||||
|
@ -1451,9 +1444,7 @@ SDL_Texture *SDL_CreateTextureWithProperties(SDL_Renderer *renderer, SDL_Propert
|
|||
texture->next = texture->native;
|
||||
renderer->textures = texture;
|
||||
|
||||
if (texture->format == SDL_PIXELFORMAT_MJPG) {
|
||||
// We have a custom decode + upload path for this
|
||||
} else if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
|
||||
if (SDL_ISPIXELFORMAT_FOURCC(texture->format)) {
|
||||
#ifdef SDL_HAVE_YUV
|
||||
texture->yuv = SDL_SW_CreateYUVTexture(texture->format, texture->colorspace, w, h);
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue