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:
Anis 2016-01-14 23:51:35 +01:00
parent 45a19453ee
commit cae97cac37

View file

@ -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;