[vtkusers] Error setting 'vertexMC' in shader VAO and EGL_BAD_DISPLAY

Ken Martin ken.martin at kitware.com
Fri Nov 20 14:21:04 EST 2015


The shader code is stored in a string. In vtkOpenGLPolyDataMapper.cxx there
are some commented out lines that I usually uncomment that print the
shaders to cout (or you could vtkErrorMacro) them. You would need to
uncomment those lines in the ReplaceShaderValues code as I mentioned on SO.
Rebuild your VTK and app. Then run it and watch for the output in the
android device monitor.  The lines will look like

  //cout << "VS: " << shaders[vtkShader::Vertex]->GetSource() << endl;
  //cout << "GS: " << shaders[vtkShader::Geometry]->GetSource() << endl;
  //cout << "FS: " << shaders[vtkShader::Fragment]->GetSource() << endl;

Thanks
Ken

On Fri, Nov 20, 2015 at 12:42 PM, Lonni Besançon <lonni.besancon at gmail.com>
wrote:

> Hi Ken,
>
> I still haven't figured this out. Could you give me some more detailed
> explanations?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Error-setting-vertexMC-in-shader-VAO-and-EGL-BAD-DISPLAY-tp5735057p5735143.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=vtkusers
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>



-- 
Ken Martin PhD
Chairman & CFO
Kitware Inc.
28 Corporate Drive
Clifton Park NY 12065
518 371 3971

This communication, including all attachments, contains confidential and
legally privileged information, and it is intended only for the use of the
addressee.  Access to this email by anyone else is unauthorized. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken in reliance on it is prohibited and may be unlawful. If you
received this communication in error please notify us immediately and
destroy the original message.  Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20151120/0c792801/attachment.html>


More information about the vtkusers mailing list