Windows 7 OpenGL 4.5 Radeon HD 7950. FBO not clear depth. Crimson 17.12.1

Discussion created by ronniko on Jan 19, 2018
Latest reply on Oct 23, 2019 by s_k

I created context wglCreateContextAttribsARB with:



                            WGL_DOUBLE_BUFFER_ARB, GL_TRUE,\

                            WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_ARB,\

                            WGL_COLOR_BITS_ARB, 32,\

                            WGL_DEPTH_BITS_ARB, 16 ,\

                            WGL_SAMPLE_BUFFERS_ARB,GL_TRUE ,\



I try with WGL_DEPTH_BITS_ARB, 24 ,WGL_STENCIL_BITS_ARB, 8  but result the same.


I created FBO color and depth textures. And i see 3d model teapot and dirt in depth and color fbo textures. My model teapot rotated.

I try create FBO depth with flag GL_DEPTH_COMPONENT not help. Try with GL_DEPTH24_STENCIL8 not help.

I try create glRenderbufferStorageMultisample(GL_RENDERBUFFER, 8, GL_DEPTH_COMPONENT16_ARB, 512,512) not help

When i do render in FBO i do: glClearColor(1.0f, 0.0f, 1.0f,1.0);


I try clear only Depth but not help.


My question is this bug AMD driver ?!


I draw in FBO plane for clearing dirt. Its help for color FBO texture, but not help for depth FBO.

Its problem will return, when i begin write shadow map technic.