Skip to content

Instantly share code, notes, and snippets.

@metacollin
Created December 13, 2015 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metacollin/89d83a76140b9893fb7e to your computer and use it in GitHub Desktop.
Save metacollin/89d83a76140b9893fb7e to your computer and use it in GitHub Desktop.
diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp
index 73c71fb..d618ef6 100644
--- a/common/gal/opengl/opengl_gal.cpp
+++ b/common/gal/opengl/opengl_gal.cpp
@@ -163,7 +163,10 @@ void OPENGL_GAL::BeginDrawing()
// Enable the depth buffer
glEnable( GL_DEPTH_TEST );
glDepthFunc( GL_LESS );
-
+ glEnable( GL_LINE_SMOOTH );
+ glHint( GL_PERSPECTIVE_CORRECTION_HINT, GL_DONT_CARE );
+ glHint( GL_LINE_SMOOTH_HINT, GL_NICEST );
+ glHint( GL_POLYGON_SMOOTH_HINT, GL_NICEST );
// Setup blending, required for transparent objects
glEnable( GL_BLEND );
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment