[Solved] weird color change caused by CEGUI rendering
Posted: Sat Sep 02, 2017 20:56
Hello,
calling CEGUI's beginRendering() and endRendering() seems to change how Opengl renders alpha
here are the screenshots i took, please have a look
without CEGUI rendering:
with CEGUI rendering:
Btw, i use Opengl for rendering and SDL_image for image loading
here's my code for rendering:
My observation is that the colour changes when alpha is not 100%, but i can't figure out what is going on
calling CEGUI's beginRendering() and endRendering() seems to change how Opengl renders alpha
here are the screenshots i took, please have a look
without CEGUI rendering:
with CEGUI rendering:
Btw, i use Opengl for rendering and SDL_image for image loading
here's my code for rendering:
Code: Select all
level->Draw(); //game
GUI::GetGUIClass()->GetRenderer()->beginRendering(); //causes the problem
UIContext->draw();
GUI::GetGUIClass()->GetRenderer()->endRendering();
My observation is that the colour changes when alpha is not 100%, but i can't figure out what is going on