Remove unnecesary code for handle OpenGL.

This commit is contained in:
LuisAntonRebollo 2014-11-08 01:21:38 +01:00
parent c354f59b72
commit f101fbe820
5 changed files with 7 additions and 31 deletions

View file

@ -353,9 +353,7 @@ void GuiColorPickerCtrl::onRender(Point2I offset, const RectI& updateRect)
Point2I resolution = getRoot()->getExtent();
U32 buf_x = offset.x + mSelectorPos.x + 1;
U32 buf_y = ( extent.y - ( offset.y + mSelectorPos.y + 1 ) );
if(GFX->getAdapterType() != OpenGL)
buf_y = resolution.y - buf_y;
U32 buf_y = resolution.y - ( extent.y - ( offset.y + mSelectorPos.y + 1 ) );
GFXTexHandle bb( resolution.x,
resolution.y,