- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
As the title states, the following OpenGL function has no effect:
glClearNamedFramebufferfv(m_glHandle, GL_COLOR, index, &color[0]);
Replacing it with the non-DSA variant however, works:
glBindFramebuffer(GL_FRAMEBUFFER, m_glHandle); glClearBufferfv(GL_COLOR, index, &color[0]);
I'm using a OpenGL 4.5 core context, VS2017 project (same happens on VS2015). Works under Linux on the same machine, and under Windows and Linux on other machines.
NOTICE: It is possible that this only happens for FBO's with multiple attachments!
System Setup Information:
-----------------------------------------
System Used: Lenovo Thinkpad T460p
CPU SKU: i5-6440HQ
GPU SKU: HD530
Processor Line: HQ?
System BIOS Version: N/A
CMOS settings: N/A
Graphics Driver Version: 22.20.16.4729
GOP/VBIOS Version: 1040.0
Operating System: Windows 10 N Professional
OS Version: Build 1506
API: OpenGL 4.5 Core
Occurs on non-Intel GPUs?: No
Steps to Reproduce:
-------------------------------
1. Setup an OpenGL 4.5 core context
2. Create an FBO, attach two color textures
3. Clear an attachment using the named DSA function
Expected Results: The attachment is cleared
-------------------------------
Actual Results: The attachment isn't cleared/possible weird results
-------------------------------
Additional Information: I use DSA functions for everything else, including FBO creation etc. It is possible that this only happens for FBO's with multiple attachments! Not verified though, but it doesnt seem to happen for all my FBO's, but it does happen for my G-buffer, which is has three RGBA16F color attachments, and a Depth24 attachment. All textures has clamp as edgewrap mode, and bilinear filtering (GL_LINEAR for both minification and magnification).
-------------------------------
Let me know if you need minimal repro and I'll put together one.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the same problem. I'm using OpenGL 4.6. My framebuffer has only one color attachment.
Graphics card: Intel HD Graphics 530
Driver version: 26.20.100.6890
When i make my program run on NVIDIA card everything works fine.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page