mirror of
https://github.com/ZDoom/gzdoom.git
synced 2025-02-18 10:11:11 +00:00
- fixed: Screen size update coordinates were copied into the wrong buffer location.
This commit is contained in:
parent
d5e31aff1b
commit
b75395aa74
2 changed files with 4 additions and 2 deletions
|
@ -221,7 +221,7 @@ void FFlatVertexBuffer::OutputResized(int width, int height)
|
||||||
vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0);
|
vbo_shadowdata[7].Set((float)width, (float)height, 0, 0, 0);
|
||||||
|
|
||||||
Map();
|
Map();
|
||||||
memcpy(map, &vbo_shadowdata[4], 4 * sizeof(FFlatVertex));
|
memcpy(&map[4], &vbo_shadowdata[4], 4 * sizeof(FFlatVertex));
|
||||||
Unmap();
|
Unmap();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -189,7 +189,9 @@ void OpenGLFrameBuffer::Update()
|
||||||
int clientHeight = GetClientHeight();
|
int clientHeight = GetClientHeight();
|
||||||
if (clientWidth > 0 && clientHeight > 0 && (Width != clientWidth || Height != clientHeight))
|
if (clientWidth > 0 && clientHeight > 0 && (Width != clientWidth || Height != clientHeight))
|
||||||
{
|
{
|
||||||
Resize(clientWidth, clientHeight);
|
// Do not call Resize here because it's only for software canvases
|
||||||
|
Pitch = Width = clientWidth;
|
||||||
|
Height = clientHeight;
|
||||||
V_OutputResized(Width, Height);
|
V_OutputResized(Width, Height);
|
||||||
GLRenderer->mVBO->OutputResized(Width, Height);
|
GLRenderer->mVBO->OutputResized(Width, Height);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue