#66857 - ficedula - Fri Jan 13, 2006 10:33 pm
I seem to be having problems turning polygon outlining off ... although I haven't noticed before since I'd always rendered everything with polyid 1 before, hence no boundaries and no outlines ;)
Writing to GFX_CONTROL directly is fine, but using glEnable/glDisable seems to screw up majorly. Unless I've misunderstood what it's supposed to do totally, the following code from libnds seems to be wrong...
Have I missed something, or does this really enable everything whenever I call glEnable? I mean, it does enable what I asked for, but I don't want everything else too... ;)
Writing to GFX_CONTROL directly is fine, but using glEnable/glDisable seems to screw up majorly. Unless I've misunderstood what it's supposed to do totally, the following code from libnds seems to be wrong...
Code: |
//--------------------------------------------------------------------------------- void glEnable(int bits) { //--------------------------------------------------------------------------------- enable_bits |= bits | (GL_TEXTURE_2D|GL_TOON_HIGHLIGHT|GL_OUTLINE|GL_ANTIALIAS); GFX_CONTROL = enable_bits; } |
Have I missed something, or does this really enable everything whenever I call glEnable? I mean, it does enable what I asked for, but I don't want everything else too... ;)