I created context wglCreateContextAttribsARB with:
WGL_DEPTH_BITS_ARB, 16 ,\
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);
glClear(GL_DEPTH_BUFFER_BIT+GL_COLOR_BUFFER_BIT+ GL_STENCIL_BUFFER_BIT );
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.