mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-16 17:11:15 +00:00
Merge pull request #73 from lvonasek/backport_alpha_fix
Clearing alpha channel of FBO fixes a few menu issues
This commit is contained in:
commit
0695c7ac76
1 changed files with 6 additions and 0 deletions
|
@ -345,6 +345,12 @@ void VR_DrawFrame( engine_t* engine ) {
|
||||||
|
|
||||||
Com_Frame();
|
Com_Frame();
|
||||||
|
|
||||||
|
// Clear the alpha channel, other way VR API would not transfer the framebuffer fully
|
||||||
|
glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_TRUE);
|
||||||
|
glClearColor(0.0, 0.0, 0.0, 1.0);
|
||||||
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
|
glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
|
||||||
|
|
||||||
engine->framebuffers.swapchainIndex = (engine->framebuffers.swapchainIndex + 1) %
|
engine->framebuffers.swapchainIndex = (engine->framebuffers.swapchainIndex + 1) %
|
||||||
engine->framebuffers.swapchainLength;
|
engine->framebuffers.swapchainLength;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue