mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
Fixed wrong starting frame for wipe animation
Menu graphics appeared in starting frame with hardware renderer only Software renderer was not affected as it reads pixels from front buffer instead of back buffer like OpenGL counterpart did See http://forum.drdteam.org/viewtopic.php?t=6857
This commit is contained in:
parent
f4f489b33d
commit
1f64d7ee22
1 changed files with 4 additions and 0 deletions
|
@ -153,7 +153,11 @@ bool OpenGLFrameBuffer::WipeStartScreen(int type)
|
|||
GLRenderer->mSamplerManager->Bind(1, CLAMP_NONE);
|
||||
glFinish();
|
||||
wipestartscreen->Bind(0, false, false);
|
||||
GLint readbuffer = 0;
|
||||
glGetIntegerv(GL_READ_BUFFER, &readbuffer);
|
||||
glReadBuffer(GL_FRONT);
|
||||
glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, Width, Height);
|
||||
glReadBuffer(readbuffer);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
|
||||
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
|
||||
|
||||
|
|
Loading…
Reference in a new issue