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 7175847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:23:13+00:00 2026-05-28T16:23:13+00:00

So this one is a doozie; I’ve got a pretty large OpenGL solution, written

  • 0

So this one is a doozie;
I’ve got a pretty large OpenGL solution, written in version 3.2 core with GLSL 1.5 in Windows 7. I am using GLEW and GLM as helper libraries. When I create a window, I am using the following lines:

// Initialize main window
glewExperimental = GL_TRUE;
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3); // Use OpenGL Core v3.2
glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
glfwOpenWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE);
if(!glfwOpenWindow(Game::WINDOW_X, Game::WINDOW_Y, 0, 0, 0, 0, 32, 0, GLFW_WINDOW))
{ ...

If I omit the three glfwOpenWindowHint functions, the application crashes my video drivers upon call to glDrawArrays(GL_TRIANGLES, 0, m_numIndices);

But here’s the kicker. When someone else in my group tries to update and run the solution, they get a blank window with no geometry. Commenting out the three lines makes the program run fine for them. There is a pretty even split between working with the 3.2core hint and without. I haven’t been able to determine any difference between nVidia, AMD, desktop, or laptop.

The best I could find was a suggestion to add glewExperimental = GL_TRUE; as Glew is said to have problems with core. It made no difference. The solution is too big to post code, but I can put up shaders, rendering code, etc as needed.

Thanks so much! This has been killing us for several days now.

  • 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-05-28T16:23:14+00:00Added an answer on May 28, 2026 at 4:23 pm

    Try asking for a forward-compatible GLFW window:

    GLFW_OPENGL_FORWARD_COMPAT – Specify whether the OpenGL contextshould be forward-compatible (i.e. disallow legacy functionality). This should only beused when requesting OpenGL version 3.0 or above.

    And try not setting the profile hint and let the system choose:

    // Use OpenGL Core v3.2
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MAJOR, 3);
    glfwOpenWindowHint(GLFW_OPENGL_VERSION_MINOR, 2);
    glfwOpenWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE);
    

    Also, make sure that you actually get a version you want:

    int major, minor, rev;
    
    glfwGetGLVersion(&major, &minor, &rev);
    
    fprintf(stderr, "OpenGL version recieved: %d.%d.%d", major, minor, rev);
    

    Not sure whether you also run for Macs, but read this anyway:

    A.4 OpenGL 3.0+ on Mac OS X

    Support for OpenGL 3.0 and above was introduced with Mac OS X 10.7,
    and even then forward-compatible OpenGL 3.2 core profile contexts are
    supported and there is no mechanism for requesting debug contexts.
    Earlier versions of Mac OS X supports at most OpenGL version 2.1.

    Because of this, on Mac OS X 10.7, the GLFW_OPENGL_VERSION_MAJOR and
    GLFW_OPENGL_VERSION_MINOR hints will fail if given a version above
    3.2, the GLFW_OPENGL_DEBUG_CONTEXT and GLFW_FORWARD_COMPAT hints are ignored, and setting the GLFW_OPENGL_PROFILE hint to anything except
    zero or GLFW_OPENGL_CORE_PROFILE will cause glfwOpenWindow to fail.

    Also, on Mac OS X 10.6 and below, the GLFW_OPENGL_VERSION_MAJOR and
    GLFW_OPENGL_VERSION_MINOR hints will fail if given a version above
    2.1, the GLFW_OPENGL_DEBUG_CONTEXT hint will have no effect, and setting the GLFW_OPENGL_PROFILE or GLFW_FORWARD_COMPAT hints to a
    non-zero value will cause glfwOpenWindow to fail.

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

Sidebar

Related Questions

This one's got me a bit baffled. I've written some extension methods on UIElement
This one has got me stumped. I am currently rendering a form using ASP
This one is pretty simple actually yet I wasn't able to find anything useful.
This one has me puzzled. It seemed like an easy task, but the solution
This one may be a bit strange. I have a solution in Visual Studio
This one may seem like a simple question, but it's really got me scratching
This one is driving me nuts. It’s got to be something simple and stupid
This one got me the other day. What would you expect the following to
This one seems like it should be pretty straightforward, but I couldn't quite figure
This one has really got me stumped. I have certain forms that are being

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.