From: ro B. <ser...@ne...> - 2002-01-17 20:36:27
|
Brian Paul wrote <br...@tu...>: } } I'm not sure I understand you. If you comment out } the } GLX_DEPTH_SIZE, 24, elements you're telling GLX that } you } don't need a depth (Z) buffer. So, } glEnable(GL_DEPTH_TEST) } without a depth buffer doesn't make much sense (in } fact } Mesa warns you if you try this, if the MESA_DEBUG env } var } is set). } } As far as I can tell, the program does exactly what } it's } supposed to do. } } -Brian } Ok, I do need depth, I supposed the dblbuf[], is to help GLX choose the best visual, not to "tell don't need a depth (Z) buffer", and glEnable() enables or tell need depth (Z) buffer. you are right! but if I dont know the depth size, the problem is exactly, must give one size, because for example if I want the application works in different computers that have different depth sizes? or can I use dblbuf[] with just GLX_DEPTH_SIZE without 24 ? thank you Sérgio Monteiro Basto P.S: I think the example is good to be in MesaGlxDemos -------------------------------------------- Webmail da rede SAPO - http://webmail.sapo.pt/ |