It is a pity that stencil buffers have to be setup with the rendering context :/ I would suggest you try it and do some evil stuff like switching to the desktop and back, change resolution during a game and so on. If you don't get a blank screen or your stencil buffer is lost it works. Without knowing a single bit of the hl code I can only guess though. Deactivate Valve's rendering context and activate yours and at the end deactivate yours again, free it and activate Valve's. Or is the OpenGL setup not burried in the HW.dll?
Is that safe O_O?
[ Converted text/html to text/plain ]
You can enable your own stencil buffer by removing the default GL context and creating your own in dllmain. Not sure how to do it in D3D, but you get hte idea.
Shimms
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

