Implements missing _captureBackBuffer method for GL gfx layer.

GL layer was missing _captureBackBuffer() implementation which caused screenShot() function to fail. Also caused ScreenShot::capture() to be called every frame afterward which caused significant performance issues.
This commit is contained in:
chaigler 2020-07-02 16:02:05 -04:00
parent 005f7f6fd2
commit e2bf5cb8fe
3 changed files with 88 additions and 2 deletions

View file

@ -25,7 +25,7 @@
#include "platform/platformGL.h"
#include "gfx/gfxCubemap.h"
#include "gfx/screenshot.h"
#include "gfx/gl/screenshotGL.h"
#include "gfx/gfxDrawUtil.h"
#include "gfx/gl/gfxGLEnumTranslate.h"
@ -230,7 +230,7 @@ GFXGLDevice::GFXGLDevice(U32 adapterIndex) :
mDeviceSwizzle24 = &Swizzles::rgb;
mTextureManager = new GFXGLTextureManager();
gScreenShot = new ScreenShot();
gScreenShot = new ScreenShotGL();
for(U32 i = 0; i < TEXTURE_STAGE_COUNT; i++)
mActiveTextureType[i] = GL_ZERO;