mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-16 00:54:54 +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
1 changed files with 1 additions and 2 deletions
|
|
@ -107,8 +107,7 @@ void RenderTexTargetBinManager::initPersistFields()
|
||||||
|
|
||||||
bool RenderTexTargetBinManager::setTargetSize(const Point2I &newTargetSize)
|
bool RenderTexTargetBinManager::setTargetSize(const Point2I &newTargetSize)
|
||||||
{
|
{
|
||||||
if( GFX->getAdapterType() != OpenGL && // Targets need to match up exactly in size on OpenGL.
|
if( mTargetSize.x >= newTargetSize.x &&
|
||||||
mTargetSize.x >= newTargetSize.x &&
|
|
||||||
mTargetSize.y >= newTargetSize.y )
|
mTargetSize.y >= newTargetSize.y )
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue