Remove GL error about draw2DLine

Use GL32_draw2DRectangle, only works if it's a straight line.
This commit is contained in:
Benau
2016-12-15 12:56:08 +08:00
parent 2e2345289c
commit 035271d6ec

View File

@@ -434,9 +434,7 @@ void Profiler::draw()
s32 y_up_sync = (s32)(MARGIN_Y*screen_size.Height);
s32 y_down_sync = (s32)( (MARGIN_Y + (2+nb_thread_infos)*LINE_HEIGHT)*screen_size.Height );
driver->draw2DLine(core::vector2di(x_sync, y_up_sync),
core::vector2di(x_sync, y_down_sync),
video::SColor(0xFF, 0x00, 0x00, 0x00));
GL32_draw2DRectangle(video::SColor(0xFF, 0x00, 0x00, 0x00), core::rect<s32>(x_sync, y_up_sync, x_sync + 1, y_down_sync));
}
// Draw the hovered markers' names