SDL_RenderClear returning error

Is there something I am doing wrong? SDL_RenderClear() always returns -1 with d3d renderer. All subsequent calls to renderer like SDL_RenderCopy or SDL_SetRenderColor are ok so I guess it is not invalid renderer init.

No, it should work fine. What’s the output of SDL_GetError()? Have
you tried debugging it?

See ya!On Mon, Jan 11, 2010 at 8:07 AM, hardcoder wrote:

Is there something I am doing wrong? SDL_RenderClear() always returns -1
with d3d renderer. All subsequent calls to renderer like SDL_RenderCopy or
SDL_SetRenderColor are ok so I guess it is not invalid renderer init.


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

Error msg is: “That operation is not supported”. I will try to debug later today.