mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 15:09:19 +02:00
reset glLineWidth
This commit is contained in:
@@ -668,6 +668,9 @@ void opengl_renderer::Render_pass(viewport_config &vp, rendermode const Mode)
|
|||||||
|
|
||||||
m_colorpass = m_renderpass;
|
m_colorpass = m_renderpass;
|
||||||
|
|
||||||
|
if (m_widelines_supported)
|
||||||
|
glLineWidth(1.0f);
|
||||||
|
|
||||||
if (!Global.gfx_usegles)
|
if (!Global.gfx_usegles)
|
||||||
{
|
{
|
||||||
if (Global.bWireFrame)
|
if (Global.bWireFrame)
|
||||||
@@ -3174,6 +3177,9 @@ void opengl_renderer::Render_Alpha(TTraction *Traction)
|
|||||||
// debug data
|
// debug data
|
||||||
++m_debugstats.traction;
|
++m_debugstats.traction;
|
||||||
++m_debugstats.drawcalls;
|
++m_debugstats.drawcalls;
|
||||||
|
|
||||||
|
if (m_widelines_supported)
|
||||||
|
glLineWidth(1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
void opengl_renderer::Render_Alpha(scene::lines_node const &Lines)
|
void opengl_renderer::Render_Alpha(scene::lines_node const &Lines)
|
||||||
@@ -3204,6 +3210,9 @@ void opengl_renderer::Render_Alpha(scene::lines_node const &Lines)
|
|||||||
|
|
||||||
++m_debugstats.lines;
|
++m_debugstats.lines;
|
||||||
++m_debugstats.drawcalls;
|
++m_debugstats.drawcalls;
|
||||||
|
|
||||||
|
if (m_widelines_supported)
|
||||||
|
glLineWidth(1.0f);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool opengl_renderer::Render_Alpha(TDynamicObject *Dynamic)
|
bool opengl_renderer::Render_Alpha(TDynamicObject *Dynamic)
|
||||||
|
|||||||
Reference in New Issue
Block a user