Allow GLava to work without GL_NV_texture_barrier extension#143
Allow GLava to work without GL_NV_texture_barrier extension#143quantum5 wants to merge 1 commit into
Conversation
|
Are you on a driver that doesn't support this extension? Removing this call is sure to give rise to strange bugs that would be otherwise difficult to narrow down. If your driver does not support this function (all major vendors should, despite the |
|
Yes, I was running GLava on mesa. Not the best combination, but it also shouldn't just outright crash with a segmentation fault. I will give |
|
@quantum5 Attempting to use glMemoryBarrier instead, and if that doesn't exist, force-disabling Removing the
I am assuming on older Intel integrated graphics, because most mesa drivers support Also, I would hold off on trying to fix the patch since there is a huge slew of changes pending on my local branch that contains the remainder of the GPU-accelerated FFT stuff. |
Without this extension, GLava tries to call into a null pointer and segfaults.
Fix: don't call
glTextureBarrierNVif the extension doesn't exist.This is potentially unsafe, but appears to work fine in practice.