CreateSprite works when Depth = 32 but fails for other depths.
Code: Select all
Depth = 24
InitKeyboard()
InitSprite()
InitSprite3D()
OpenScreen(800, 600, Depth, "Screen")
CreateSprite(#PB_Any, 256, 256, 0) ; [Error]Invalid memory access.(read error at address 0) when Depth <> 32
I would not expect the PB functional code to change because of this but it is a "GOTCHA" that a warning could make much friendlier.

So what I am asking is for PB Initialization of drawing procedures to include a check for OPENGL and a warning when it might need to be added.