[vtkusers] TEXTURE_BUFFER fails : pure OpenGL vs vtkgl ?
Aashish Chaudhary
aashish.chaudhary at kitware.com
Thu May 21 09:18:20 EDT 2015
Are you using OpenGL2 backend or 1
- Aashish
On Thu, May 21, 2015 at 7:55 AM, Butterfly <ninarock at list.ru> wrote:
> I found out what exactly causes the error, *but I still do not understand
> why
> this is happenning...*
>
> Turns out that all function pointers that start with vtkgl::TexBuffer* and
> vtkgl::TextureBuffer* are not valid function pointers. That is why calling
> them causes the AccessViolationException (Access violation executing
> location 0x00000000).
>
> I tested the function pointers like this:
>
> bool b = false;
>
> if (vtkgl::TexBufferEXT)
> b = true;
> if (vtkgl::TexBuffer)
> b = true;
> if (vtkgl::TexBufferARB)
> b = true;
> if (vtkgl::TextureBufferEXT)
> b = true;
>
> After executing the above code, b is false.
>
> Other pointers are ok, for example these both return b = true :
> if (vtkgl::UnmapBuffer)
> b = true;
>
> if (vtkgl::TEXTURE_BUFFER_EXT)
> b = true;
>
> I've read in the Internet that such kind of errors may occur if GLEW is not
> correctly initialized
> (https://www.opengl.org/wiki/OpenGL_Loading_Library#GLEW ). *One should
> set
> glewExperimental=TRUE and call glewInit(). But how am I supposed to do this
> using VTKOpenGL? Should I do this at all ?*
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/TEXTURE-BUFFER-fails-pure-OpenGL-vs-vtkgl-tp5731938p5731952.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
>
--
*| Aashish Chaudhary | Technical Leader | Kitware Inc. *
*| http://www.kitware.com/company/team/chaudhary.html
<http://www.kitware.com/company/team/chaudhary.html>*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150521/d4b67793/attachment.html>
More information about the vtkusers
mailing list