Re: Change TEXTURE_ACCESS from TARGET to STREAMING
"stewambo" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
> https://wiki.libsdl.org/SDL_RenderCopyEx > " Use this function to copy a portion of the texture to the current rendering target, optionally rotating it by angle around the given center and also flipping it top-bottom and/or left-right. " Yeah, I could just flip the texture right before I call SDL_RenderReadPixels, but in another thread I read that this bug only happens sometimes, so not on all platforms/renderers. So I would need to check on startup if this bug is present and remember it. I'll keep this solution in my mind. > Can you try the latest SDL snapshot? I think this is fixed:http://www.libsdl.org/tmp/SDL-2.0.zip I just downloaded your zip file, compiled the SDL and SDLmain (from VisualC folder) in Visual studio, replaced my current includes, .dll and .lib files with the newly created ones, rebuilt my own application and the bug still persists. > Can't you clear it before your SDL_RenderPresent, for example with SDL_RenderClear? Not if I need to convert a texture during my render calls because then I would clear all objects that have already been renderered. Of course if I converted my textures before my render calls it would work, but sometimes I create new target textures to draw on during my render calls, which I immediately need to convert to do some pixel manipulation... _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org