"DrawPrimitiveUP(): UNKNOWN" in either RenderCopy or RenderCopyEx

SYMPTOM:
after a few game cycles I am getting “DrawPrimitiveUP(): UNKNOWN” error on
response to the call to either function: RenderCopy or RenderCopyEx.

USAGE:
im using high pace SDL_CreateTextureFromSurface for creation from a fixed
surface array and SDL_DestroyTexture for cleanup - yes, each object has
his own texture, for different alphas etc.

IDEAS: ?

Try turning on the debug DirectX runtime? It may print more informative
messages.
Also try explicitly initializing the OpenGL renderer and see if you get
different results?

Cheers,On Tue, May 13, 2014 at 9:27 AM, Sergio Machado wrote:

SYMPTOM:
after a few game cycles I am getting “DrawPrimitiveUP(): UNKNOWN” error on
response to the call to either function: RenderCopy or RenderCopyEx.

USAGE:
im using high pace SDL_CreateTextureFromSurface for creation from a fixed
surface array and SDL_DestroyTexture for cleanup - yes, each object has
his own texture, for different alphas etc.

IDEAS: ?


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

WORKAROUND (while i cant figure out why this happens but i read somwhere we
need to explicitly clear OpenGL texture buffers)

  1. Cut original texture from originally 512x32 to 16 individual textures of
    32x32On 16 May 2014 07:39, Sam Lantinga wrote:

Try turning on the debug DirectX runtime? It may print more informative
messages.
Also try explicitly initializing the OpenGL renderer and see if you get
different results?

Cheers,

On Tue, May 13, 2014 at 9:27 AM, Sergio Machado <@Sergio_Machado>wrote:

SYMPTOM:
after a few game cycles I am getting “DrawPrimitiveUP(): UNKNOWN” error
on response to the call to either function: RenderCopy or RenderCopyEx.

USAGE:
im using high pace SDL_CreateTextureFromSurface for creation from a fixed
surface array and SDL_DestroyTexture for cleanup - yes, each object has
his own texture, for different alphas etc.

IDEAS: ?


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


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


SM