Enable depth buffering
This commit is contained in:
parent
ae95da9cd8
commit
7e797980ac
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ void GlutRender::init(int* argc, char** argv,
|
||||||
int wid, int hei, const char* win_name)
|
int wid, int hei, const char* win_name)
|
||||||
{
|
{
|
||||||
glutInit(argc, argv);
|
glutInit(argc, argv);
|
||||||
glutInitDisplayMode(GLUT_DOUBLE);
|
glutInitDisplayMode(GLUT_DOUBLE | GLUT_DEPTH);
|
||||||
glutInitWindowSize(wid, hei);
|
glutInitWindowSize(wid, hei);
|
||||||
glutCreateWindow(win_name);
|
glutCreateWindow(win_name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue