[vtkusers] vtk 6.3.0 | OpenGL2: OpenGL errors?

Audrius Stundzia audrius at tomographix.com
Mon Sep 21 13:09:38 EDT 2015


OS: Windows 10 x64 IDE: MS VS2015 x64 CMake: VTK_RENDERING_BACKEND
OpenGL2 VTK_REPORT_OPENGL_ERRORS [Checkmark - On] VTK: 6.3.0 x64
Debug build

In stdafx.h, have

#include <vtkOpenGLError.h>

Encountering the following runtime error message:

Error in ...\OpenGL2\vtkOpenGLRenderer.cxx, line 351 vtkOpenGLRenderer
[...]: failed after Clear 16 OpenGL errors detected :[1282] Invalid
Operation ...
15:[1282] Invalid Operation

in previously working code, in vtk 5.10.1, that texture maps an image
onto a plane. The image is displayed as before, however, it is
accompanied by the above error message.

A Google search suggests that this may be a GLSL version issue:


Also, attempting to add the vtk line of code


generates the following error message:

error LNK2019: unresolved external symbol __imp_glGetError referenced in
function "void __cdecl vtkClearOpenGLErrors(unsigned int)"
(?vtkClearOpenGLErrors@@YAXI at Z)

Please advise.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150921/a1131a61/attachment.html>

More information about the vtkusers mailing list