Skip to content

Commit

Permalink
OpenGL Haiku and Linuxç
Browse files Browse the repository at this point in the history
  • Loading branch information
aarroyoc committed Jan 9, 2016
1 parent 9843565 commit deb8320
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/gl/gl1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ void GlPreviewer::DrawCube(unsigned short x, unsigned short y, unsigned short z,
void GlPreviewer::Render(int width, int height, Geometry* geo, Material3D mat, float zoom, float rotation)
{
// USE OLD OPENGL 1 code
#ifndef __HAIKU__
glClearColor(0.0,0.0,0.0,1.0);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
#endif

glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LESS);
Expand All @@ -100,7 +104,9 @@ void GlPreviewer::Render(int width, int height, Geometry* geo, Material3D mat, f
glRotatef(rotation,0.0f,1.0f,0.0f);

// Draw AXIS
#ifdef __HAIKU__
glClearColor(0.0,0.0,0.0,1.0);
#endif
//

glColor3f(1.0,0.0,0.0);
Expand Down

0 comments on commit deb8320

Please sign in to comment.