Alpha blending only works when debugging (Code Blocks)
I cannot understand this...
I have an SDL application, setup for OpenGL.
Alpha blending is enabled and I can render a quad in 2D mode with alpha blending as long as I run the debugger through the code.
However, If I use "build and run", the image will not display unless alpha blending is off.
Totally confused.
The problem is almost certainly down to uninitialized heap data. When run with the debugger Windows will initialize it for you.
Look for variables that are set to values like 0xCDCDCDCD or 0xDDDDDDDD in heap allocated objects.
Look for variables that are set to values like 0xCDCDCDCD or 0xDDDDDDDD in heap allocated objects.
How can I resolve this?
There are some classes in my code, but they are all initialised to 'new' objects.
There are some classes in my code, but they are all initialised to 'new' objects.
Without more information, all I can say is:
Create a minimal test application that demonstrates the problem.
Create a minimal test application that demonstrates the problem.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement