mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-01-19 20:24:49 +00:00
Glow buffer graphic corruption fix on OpenGL.
Caused by a wrong target size. (probably it was ok on the very old OpenGL 1.5 version) Before fix, wrong behaviour: http://goo.gl/dik7Ia After fix, all right: http://goo.gl/IsrckM
This commit is contained in:
parent
45a19453ee
commit
cae97cac37
|
|
@ -107,8 +107,7 @@ void RenderTexTargetBinManager::initPersistFields()
|
|||
|
||||
bool RenderTexTargetBinManager::setTargetSize(const Point2I &newTargetSize)
|
||||
{
|
||||
if( GFX->getAdapterType() != OpenGL && // Targets need to match up exactly in size on OpenGL.
|
||||
mTargetSize.x >= newTargetSize.x &&
|
||||
if( mTargetSize.x >= newTargetSize.x &&
|
||||
mTargetSize.y >= newTargetSize.y )
|
||||
return true;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue