An update will be applied January 25th, between 12PM and 1:00PM EST (UTC -5:00). The site may be slow during that time.

Commit 4f4b8924 authored by Dan Lipsa's avatar Dan Lipsa Committed by Kitware Robot
Browse files

Merge topic 'vtkRenderingCoreTcl-CamBlur'

04fbdbb4

 BUG: This fixes a valgrind complaint.
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Ken Martin's avatarKen Martin <ken.martin@kitware.com>
Merge-request: !363
parents bc2eea6f 04fbdbb4
......@@ -520,19 +520,31 @@ int vtkOpenGLRenderWindow::GetColorBufferSizes(int *rgba)
glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER,
attachment,
GL_FRAMEBUFFER_ATTACHMENT_RED_SIZE, &size);
rgba[0] = static_cast<int>(size);
if (glGetError() == GL_NO_ERROR)
{
rgba[0] = static_cast<int>(size);
}
glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER,
attachment,
GL_FRAMEBUFFER_ATTACHMENT_GREEN_SIZE, &size);
rgba[1] = static_cast<int>(size);
if (glGetError() == GL_NO_ERROR)
{
rgba[1] = static_cast<int>(size);
}
glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER,
attachment,
GL_FRAMEBUFFER_ATTACHMENT_BLUE_SIZE, &size);
rgba[2] = static_cast<int>(size);
if (glGetError() == GL_NO_ERROR)
{
rgba[2] = static_cast<int>(size);
}
glGetFramebufferAttachmentParameteriv(GL_DRAW_FRAMEBUFFER,
attachment,
GL_FRAMEBUFFER_ATTACHMENT_ALPHA_SIZE, &size);
rgba[3] = static_cast<int>(size);
if (glGetError() == GL_NO_ERROR)
{
rgba[3] = static_cast<int>(size);
}
}
else
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment