Skip to content

Commit

Permalink
Fix #5416 take 3
Browse files Browse the repository at this point in the history
  • Loading branch information
ashdnazg committed Dec 15, 2016
1 parent 65c66ee commit 5cb7155
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions rts/Rendering/GL/myGL.h
Expand Up @@ -50,9 +50,6 @@ static inline void glUniformf3(const GLint location, const float3& v) { glUnifor
#undef glOrtho
#undef gluOrtho2D
#undef glFrustum
#define glOrtho __spring_glOrtho
#define gluOrtho2D __spring_gluOrtho2D
#define glFrustum __spring_glFrustum

static inline void __spring_glOrtho(GLdouble l, GLdouble r, GLdouble b, GLdouble t, GLdouble n, GLdouble f) {
glTranslatef(0.0f, 0.0f, 0.5f);
Expand All @@ -65,6 +62,11 @@ static inline void __spring_glFrustum(GLdouble l, GLdouble r, GLdouble b, GLdou
glScalef(1.0f, 1.0f, 0.5f);
glFrustum(l, r, b, t, n, f);
}

#define glOrtho __spring_glOrtho
#define gluOrtho2D __spring_gluOrtho2D
#define glFrustum __spring_glFrustum

#endif

void WorkaroundATIPointSizeBug();
Expand Down

0 comments on commit 5cb7155

Please sign in to comment.