No stencil on IMacs?

BlitzMax Forums/BlitzMax Programming/No stencil on IMacs?

RupeB(Posted 2015) [#1]
Hi guys, I tried to find out the number of bits of the Stencilbuffer on an ordinary Imac, itīs an 3Ghz Mid 2010 model with an ATI Radeon HD4670 256MB).

I got 0? Is canīt be right? shouldnīt it have at least 8bits?

'Number of bitplanes in the stencil buffers
Graphics 800,600,0
num=0
glGetIntegerv(GL_STENCIL_BITS,Varptr num)
Print "Number of stencil bits = "+num
End



Brucey(Posted 2015) [#2]
What if you add GRAPHICS_STENCILBUFFER flag when creating your graphics context?


RupeB(Posted 2015) [#3]
Graphics:TGraphics( 800,600,0,60,GRAPHICS_STENCILBUFFER)
num=0
glGetIntegerv(GL_STENCIL_BITS,Varptr num)
Print "Number of stencil bits = "+num
End


Gave me 8, that was it, nice.


Thanks !