BGE: Fix for [#33685] "2D Filters Partially Offset" reported by Josiah Lane (solarlune). This bug was caused by me in a recent change to clean up the 2D filters a bit. I forgot that canvas->SetViewPort already handles some viewport calculations, and thus I ended up doubling up on calculations, which caused the offset.

This commit is contained in:
Mitchell Stokes
2012-12-29 04:03:25 +00:00
parent bc9ad1270b
commit 7d68b37032

View File

@@ -428,7 +428,7 @@ void RAS_2DFilterManager::RenderFilters(RAS_ICanvas* canvas)
// reverting to texunit 0, without this we get bug [#28462]
glActiveTextureARB(GL_TEXTURE0);
canvas->SetViewPort(rect.GetLeft(), rect.GetBottom(), rect_width, rect_height);
canvas->SetViewPort(0, 0, rect_width, rect_height);
glDisable(GL_DEPTH_TEST);
// in case the previous material was wire