mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
- With dynamic light data creation being done in the preparation pass, the light buffer must be mapped while this is running for it to work on older hardware.
This commit is contained in:
parent
f91511bd84
commit
6cd8b1b3eb
1 changed files with 3 additions and 0 deletions
|
@ -249,6 +249,8 @@ void GLSceneDrawer::CreateScene()
|
|||
for(auto p : level.portalGroups) p->glportal = nullptr;
|
||||
Bsp.Clock();
|
||||
GLRenderer->mVBO->Map();
|
||||
GLRenderer->mLights->Begin();
|
||||
|
||||
SetView();
|
||||
validcount++; // used for processing sidedefs only once by the renderer.
|
||||
|
||||
|
@ -269,6 +271,7 @@ void GLSceneDrawer::CreateScene()
|
|||
gl_drawinfo->HandleMissingTextures(in_area); // Missing upper/lower textures
|
||||
gl_drawinfo->HandleHackedSubsectors(); // open sector hacks for deep water
|
||||
gl_drawinfo->ProcessSectorStacks(in_area); // merge visplanes of sector stacks
|
||||
GLRenderer->mLights->Finish();
|
||||
GLRenderer->mVBO->Unmap();
|
||||
|
||||
ProcessAll.Unclock();
|
||||
|
|
Loading…
Reference in a new issue