<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hello,</div>
<div> </div>
<div>OS: Windows 10 x64<br></div>
<div>IDE: MS VS2015 x64<br></div>
<div>CMake: <br></div>
<div>VTK_RENDERING_BACKEND OpenGL2<br></div>
<div>VTK_REPORT_OPENGL_ERRORS [Checkmark - On]<br></div>
<div>VTK: 6.3.0 x64 Debug build<br></div>
<div> </div>
<div>In stdafx.h, have<br></div>
<div> </div>
<div>#include <vtkOpenGLError.h><br></div>
<div> </div>
<div>Encountering the following runtime error message:<br></div>
<div> </div>
<div>Error in ...\OpenGL2\vtkOpenGLRenderer.cxx, line 351<br></div>
<div>vtkOpenGLRenderer [...]: failed after Clear 16 OpenGL errors detected<br></div>
<div>0:[1282] Invalid Operation<br></div>
<div>...<br></div>
<div>15:[1282] Invalid Operation<br></div>
<div> </div>
<div>in previously working code, in vtk 5.10.1, that texture maps an image onto a plane.<br></div>
<div>The image is displayed as before, however, it is accompanied by the above error message.<br></div>
<div> </div>
<div>A Google search suggests that this may be a GLSL version issue: <br></div>
<div> </div>
<div><a href="https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture">https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture</a><br></div>
<div> </div>
<div>Also, attempting to add the vtk line of code<br></div>
<div> </div>
<div>vtkOpenGLClearErrorMacro();<br></div>
<div> </div>
<div>generates the following error message:<br></div>
<div> </div>
<div>error LNK2019: unresolved external symbol __imp_glGetError referenced in function "void __cdecl vtkClearOpenGLErrors(unsigned int)" (?vtkClearOpenGLErrors@@YAXI@Z)<br></div>
<div> </div>
<div>Please advise.</div>
<div> </div>
<div> </div>
</body>
</html>