View Full Version : Why doesn't this work
I'm working on a Geforce 3 with various drivers and this is frustrating me. For some reason writemask makes vertex array not work:
glEnable (GL_DEPTH_WRITEMASK);
glEnableClientState(GL_VERTEX_ARRAY);
GLenum err = glGetError();
//err == 0x500
mikael_aronsson
04-10-2002, 11:31 PM
Hi !
0x500 is GL_INVALID_ENUM, a wild guess is that your driver does not support GL_DEPTH_WRITEMASK or something like that.
Mikael
To enable writing into the depth buffer call glDepthMask(true). If you want to know if it is on or off call glGet with argument GL_DEPTH_WRITEMASK.
kon
edit: And don't forget to call glEnable(GL_DEPTH_TEST)
[This message has been edited by kon (edited 04-11-2002).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.