SDL icon indicating copy to clipboard operation
SDL copied to clipboard

[SDL2] VITA: Can't create any render at all

Open Wohlstand opened this issue 1 year ago • 4 comments

Hello!

Since possibly this moment (and leading fixes), the SDL_Render thing on Vita won't initialize at all. I found this problem on SDL2 2.30.6 after I updated my project to use it. When I ran the old version 2.28.5, everything works just fine (the Vita SDK's current version).

Wohlstand avatar Aug 14 '24 01:08 Wohlstand

Some additional note: because of this bug, any program will fail that attempts to use the renderer, it will just won't boot because of failed renderer. If @icculus or somebody also will not fix the thing faster than me, I will try to perform something by myself today or tomorrow (depends on how fast I will finish my main work tasks).

Wohlstand avatar Aug 14 '24 17:08 Wohlstand

I probably won't get to this until next week, so if you get there first, feel free to fix it. :)

icculus avatar Aug 15 '24 02:08 icculus

Can't reproduce (using modified https://github.com/vitasdk/samples/tree/master/sdl2/redrectangle that outputs sdl version and renderer info)

using: VITA gxm renderer
using: 2.30.8 sdl

isage avatar Oct 15 '24 09:10 isage

Using non-default flags

SDL_CreateRenderer( gWindow, -1, SDL_RENDERER_ACCELERATED|SDL_RENDERER_PRESENTVSYNC|SDL_RENDERER_TARGETTEXTURE)

like theXTech does also works fine

isage avatar Oct 15 '24 12:10 isage

Hello! Any news regarding this? Last time when I tested the thing, it still fails...

Wohlstand avatar Mar 06 '25 21:03 Wohlstand

Oh wait, there are some @isage's notes that I didn't verified, I should verify them first with the latest SDL2 to see how that works.

Wohlstand avatar Mar 06 '25 21:03 Wohlstand

Hello! Just now I got news!

I found reason of this problem: it happens ONLY when SDL2 built with MinSizeRel config, but it works when SDL2 itself built as Release but the user application built as MinSizeRel. Looks absolutely weird... It's supposed to work on MinSizeRel too, just having more compact binaries.

Wohlstand avatar Apr 14 '25 05:04 Wohlstand