mirror of
https://github.com/id-Software/DOOM-3-BFG.git
synced 2025-03-14 22:50:45 +00:00
HDR framebuffer resize bugfix
This commit is contained in:
parent
2d8a0b3536
commit
f64b7b80d4
1 changed files with 11 additions and 0 deletions
|
@ -165,10 +165,15 @@ void Framebuffer::CheckFramebuffers()
|
|||
|
||||
if( r_multiSamples.GetBool() )
|
||||
{
|
||||
globalImages->currentRenderHDRImageNoMSAA->Resize( glConfig.nativeScreenWidth, glConfig.nativeScreenHeight );
|
||||
|
||||
globalFramebuffers.hdrFBO->Bind();
|
||||
globalFramebuffers.hdrFBO->AttachImage2D( GL_TEXTURE_2D_MULTISAMPLE, globalImages->currentRenderHDRImage, 0 );
|
||||
globalFramebuffers.hdrFBO->AttachImageDepth( GL_TEXTURE_2D_MULTISAMPLE, globalImages->currentDepthImage );
|
||||
globalFramebuffers.hdrFBO->Check();
|
||||
|
||||
globalFramebuffers.hdrNonMSAAFBO->width = glConfig.nativeScreenWidth;
|
||||
globalFramebuffers.hdrNonMSAAFBO->height = glConfig.nativeScreenHeight;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -178,6 +183,9 @@ void Framebuffer::CheckFramebuffers()
|
|||
globalFramebuffers.hdrFBO->Check();
|
||||
}
|
||||
|
||||
globalFramebuffers.hdrFBO->width = glConfig.nativeScreenWidth;
|
||||
globalFramebuffers.hdrFBO->height = glConfig.nativeScreenHeight;
|
||||
|
||||
// HDR quarter
|
||||
/*
|
||||
globalImages->currentRenderHDRImageQuarter->Resize( glConfig.nativeScreenWidth / 4, glConfig.nativeScreenHeight / 4 );
|
||||
|
@ -192,6 +200,9 @@ void Framebuffer::CheckFramebuffers()
|
|||
{
|
||||
globalImages->bloomRender[i]->Resize( glConfig.nativeScreenWidth / 4, glConfig.nativeScreenHeight / 4 );
|
||||
|
||||
globalFramebuffers.bloomRenderFBO[i]->width = glConfig.nativeScreenWidth / 4;
|
||||
globalFramebuffers.bloomRenderFBO[i]->height = glConfig.nativeScreenHeight / 4;
|
||||
|
||||
globalFramebuffers.bloomRenderFBO[i]->Bind();
|
||||
globalFramebuffers.bloomRenderFBO[i]->AttachImage2D( GL_TEXTURE_2D, globalImages->bloomRender[i], 0 );
|
||||
globalFramebuffers.bloomRenderFBO[i]->Check();
|
||||
|
|
Loading…
Reference in a new issue