Currently, I am trying to separate the display list from the OnPaint(), but glGenLists(1) return 0.
Is there any prerequisite on using display list?
Is function glGenLists(1) only survive inside OnXxx() event thread?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The only requirement is having a valid OpenGL context made current. You probably don’t have one. If you use multiple threads, you need to use multiple GL contexts which share objects.