mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-21 04:15:36 +00:00
Merge pull request #929 from BeamNG/remove_old_opengl_code
Remove unnecesary code for handle OpenGL.
This commit is contained in:
commit
2f8d18c0c0
5 changed files with 7 additions and 31 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue