Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8664199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:11:10+00:00 2026-06-12T17:11:10+00:00

I have an OpenGL-related issue. Whenever I attempt to draw a simple polygon using

  • 0

I have an OpenGL-related issue. Whenever I attempt to draw a simple polygon using four vertices from a vertex buffer… nothing happens. However, it will draw the shape in GL_TRIANGLES or GL_TRIANGLE_STRIP mode, albeit distorted. Am I doing something wrong?

Relevent code:

Vertex array: https://i.stack.imgur.com/4ybC6.png

GL_POLYGON: https://i.stack.imgur.com/cUEJR.png

GL_TRIANGLES: https://i.stack.imgur.com/3imiW.png

GL_TRIANGLE_STRIP: https://i.stack.imgur.com/N9Qfu.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:11:11+00:00Added an answer on June 12, 2026 at 5:11 pm

    I’m using a forward-compatible 3.2 core profile

    First of all, never use a “forward-compatible core profile”. You should just use a core profile; stop using the forward compatibility bit. It’s pointless.

    More importantly, GL_POLYGON is not part of a core OpenGL profile. It was removed in 3.1. So your code is likely giving you a GL_INVALID_ENUM error that you’re ignoring.

    Lastly, always post your OpenGL version and profile in your question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is hopefully a simple question: I have an OpenGL texture and would like
I have very simple OpenGL ES example similar to Hehe's example : http://nehe.gamedev.net/tutorial/ios_lesson_02__first_triangle/50001/ As
I have a simple OpenGL application where I have 2 objects displayed on screen:
I'm currently developping an iPad app which is using OpenGL to draw some very
I have some Qt applications rendered using OpenGL on surfaces provided by an EGL
so i'm following the OpenGL superbible 5 and have encountered yet another issue: I'm
I have done some simple OpenGL (old fixed pipeline ,without shaders ..etc) and want
I have an OpenGL application that outputs stereoscopic 3D video to off-the-shelf TVs via
I have learn OpenGL programming for some time.And I found a very strange phenomenon
I have an opengl scene rendering on an EAGLView layer and some other elements

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.