Skip to content
Snippets Groups Projects
Commit 16368b4d authored by David C. Lonie's avatar David C. Lonie
Browse files

Disable FP frame buffer when GL_ARG_texture_float is not present.

Change-Id: I975243b3238ded1d21656646788eb7117e5348b8
parent 9e18a4e3
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,7 @@ bool vtkOpenGLProjectedTetrahedraMapper::IsSupported(vtkRenderWindow *rwin)
vtkOpenGLExtensionManager *extensions = context->GetExtensionManager();
bool texSupport
= (extensions->ExtensionSupported("GL_ARB_texture_float") != 0)
&& (extensions->ExtensionSupported("GL_VERSION_1_3") != 0);
= (extensions->ExtensionSupported("GL_VERSION_1_3") != 0);
// use render to FBO when it's supported
this->CanDoFloatingPointFrameBuffer = false;
......@@ -140,7 +139,8 @@ bool vtkOpenGLProjectedTetrahedraMapper::IsSupported(vtkRenderWindow *rwin)
{
this->CanDoFloatingPointFrameBuffer
= (extensions->ExtensionSupported("GL_ARB_framebuffer_object") != 0)
&& (extensions->ExtensionSupported("GL_ARB_draw_buffers") != 0);
&& (extensions->ExtensionSupported("GL_ARB_draw_buffers") != 0)
&& (extensions->ExtensionSupported("GL_ARB_texture_float") != 0);
if (!this->CanDoFloatingPointFrameBuffer)
{
vtkWarningMacro(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment