mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-19 22:53:47 +00:00
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:
parent
005f7f6fd2
commit
e2bf5cb8fe
3 changed files with 88 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue