Merge pull request #929 from BeamNG/remove_old_opengl_code

Remove unnecesary code for handle OpenGL.
This commit is contained in:
LuisAntonRebollo 2014-11-30 02:22:24 +01:00
commit 2f8d18c0c0
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,