In my editor im drawing selectionboxes with OpenGL, they are drawn using glDrawArrays from pre calculated vertex coords.
From const array.
The box(boxes) are textured from texture loaded from file (PNG) and processed with SDL to make texture for OpenGL out of it.
The drawing and stuff works fine but there is very annoying problem (bug) for me that is really really ugly for me.
Look at the GIF.
As you see, first there are just white rectangles on red/black texture and if mouse cursor hit's the WHITE border of selection boxes, then boxes jump around (up and down).
Is it possible to tell OpenGL to ignore the selection boxes texture or the WHITE BORDER "width" in pixels or something like that?
To finally stop this jumping once and for all?
glReadPixels maybe could help, but if the textures have the same color? It will jump again?
I must tell you that it always should ignore selection boxes, but if there is anything else under the mouse cursor it shouldn't ignore it and then it is allowed to jump around.
It just must ignore the white selection boxes. That's all.
Any help, ideas, tips or hints are very very welcome.







