mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Fixed bug with line stipple and setMode.
This commit is contained in:
@@ -99,7 +99,7 @@ namespace opengl
|
|||||||
//get line style
|
//get line style
|
||||||
s.lineStyle = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? Graphics::LINE_SMOOTH : Graphics::LINE_ROUGH;
|
s.lineStyle = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? Graphics::LINE_SMOOTH : Graphics::LINE_ROUGH;
|
||||||
//get line stipple
|
//get line stipple
|
||||||
s.stipple = (glIsEnabled(GL_LINE_SMOOTH) == GL_TRUE) ? true : false;
|
s.stipple = (glIsEnabled(GL_LINE_STIPPLE) == GL_TRUE);
|
||||||
if (s.stipple)
|
if (s.stipple)
|
||||||
{
|
{
|
||||||
//get the stipple repeat
|
//get the stipple repeat
|
||||||
@@ -112,7 +112,7 @@ namespace opengl
|
|||||||
//get point style
|
//get point style
|
||||||
s.pointStyle = (glIsEnabled(GL_POINT_SMOOTH) == GL_TRUE) ? Graphics::POINT_SMOOTH : Graphics::POINT_ROUGH;
|
s.pointStyle = (glIsEnabled(GL_POINT_SMOOTH) == GL_TRUE) ? Graphics::POINT_SMOOTH : Graphics::POINT_ROUGH;
|
||||||
//get scissor status
|
//get scissor status
|
||||||
s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE) ? true : false;
|
s.scissor = (glIsEnabled(GL_SCISSOR_TEST) == GL_TRUE);
|
||||||
//do we have scissor, if so, store the box
|
//do we have scissor, if so, store the box
|
||||||
if (s.scissor)
|
if (s.scissor)
|
||||||
glGetIntegerv(GL_SCISSOR_BOX, s.scissorBox);
|
glGetIntegerv(GL_SCISSOR_BOX, s.scissorBox);
|
||||||
@@ -221,9 +221,6 @@ namespace opengl
|
|||||||
glEnable(GL_POINT_SMOOTH);
|
glEnable(GL_POINT_SMOOTH);
|
||||||
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
|
glHint(GL_POINT_SMOOTH_HINT, GL_NICEST);
|
||||||
|
|
||||||
// TODO:
|
|
||||||
//reset();
|
|
||||||
|
|
||||||
// Enable textures
|
// Enable textures
|
||||||
glEnable(GL_TEXTURE_2D);
|
glEnable(GL_TEXTURE_2D);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user