Python Forum
Why glGenVertexArray()gives access violation error?
Thread Rating:
  • 2 Vote(s) - 3.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why glGenVertexArray()gives access violation error?
#1
My old error,the NullFunctionError is solved by creating a opengl context before calling the opengl function,but now I get a new error,that is the access violation writing to location error and is caused by the same function ,the glGenVertexArray function.
1)what is happening?
2)how do I fix it?
3) is the difference between 'vao=glGenVertexArray(1)' and glGenVertexArray(1,vbo)

my code here
Reply
#2
Don't you think it might be a bit helpful to show some code?
Reply
#3
The whole program is quite long,and i dont know which part causes the problem.
The only thing i know is the main cause of this error is using GL.glGenVertexArrays.
i will try my best to extract the error part of the code or recreate the problem and post it here only around next week ,because i cant program during weekday because of school.
At the mean time,can anyone answer the third question first?
3)are there difference between 'vao=glGenVertexArray(1)' and glGenVertexArray(1,vao)
Reply
#4
I haven't touched this or openGL in ages so you are out of luck on details, but I successfully used this function here:
https://github.com/Mekire/gltut-pygame/b...anually.py
Quote:are there difference between 'vao=glGenVertexArray(1)' and glGenVertexArray(1,vao)
The second one looks like it is from the C version as you presumably pass it a struct pointer to populate.  The first version is the one you should be using.
Reply
#5
(May-02-2017, 09:14 AM)Mekire Wrote:
Quote:are there difference between 'vao=glGenVertexArray(1)' and glGenVertexArray(1,vao)
The second one looks like it is from the C version as you presumably pass it a struct pointer to populate.  The first version is the one you should be using.
In your opinion,Could this be the cause of my access violation error? Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,797 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Server Folder Error : WinError5 Access Denied fioranosnake 1 1,120 Jun-21-2022, 11:11 PM
Last Post: Larz60+
  Erreur Code access violation reading 0x00000004 yan_mhb 0 2,328 Jul-10-2020, 02:28 PM
Last Post: yan_mhb
  Windows fatal exception: access violation czhhua28 0 5,936 Mar-11-2020, 01:53 AM
Last Post: czhhua28
  Error in running MS Access Database connection code pyuser1 4 7,677 Feb-01-2018, 08:28 PM
Last Post: pyuser1
  Why do I get this error when I try to access MSAccess database from python? pavansunder 2 7,207 Aug-10-2017, 08:48 AM
Last Post: radioactive9
  PEMDAS Violation Amitoj25 2 3,269 Feb-22-2017, 10:35 PM
Last Post: ichabod801

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020