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:
GLenum err = glGetError();
//err == 0x500
04-10-2002, 11:31 PM
0x500 is GL_INVALID_ENUM, a wild guess is that your driver does not support GL_DEPTH_WRITEMASK or something like that.
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.
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.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.