Giter Club home page Giter Club logo

Comments (5)

growlercab avatar growlercab commented on May 23, 2024

OK, I had a look and it was this commit: 952a39b

tip also fails to render: 3a84684

When I run the app with Dgame 0.4.2 it picks up OpenGL 3.0, as expected because Window asked for it

Derelict loaded GL version: GL30 (GL30), available GL version: 3.0.0 NVIDIA 346.35

Manually editing Window.d to remove the code which sets the context version attributes and the app works OK, picking up OpenGL 4.5:

Derelict loaded GL version: GL45 (GL45), available GL version: 4.5.0 NVIDIA 346.35

I'm not sure of a fix that won't break MAC but I'll look into it.

Cheers,
stew

from dgame.

growlercab avatar growlercab commented on May 23, 2024

OK, I can get it to work if I comment out this line:

//SDL_GL_SetAttribute(SDL_GL_CONTEXT_FLAGS,SDL_GL_CONTEXT_FORWARD_COMPATIBLE_FLAG);

It seems for nVidia 346.35 Linux drivers setting this bit breaks rendering.

Is it possible to put a version(MAC_OSX){} block around this code? I'd rather be using GL 4.5.0 than 3.0 when possible.

I also found this from the OpenGL WIKI: https://www.opengl.org/wiki/Core_And_Compatibility_in_Contexts

Platform Issue (MacOSX): When MacOSX 10.7 introduced support for OpenGL beyond 2.1, they also introduced the core/compatibility dichotomy. However, they did not introduce support for the compatibility profile itself. Instead, MacOSX gives you a choice: core profile for versions 3.2 or higher, or just version 2.1. There is no way to get access to features after 2.1 and still access the Fixed Function Pipeline.
[snip]
Recommendation: You should never use the forward compatibility bit. It had a use for GL 3.0, but once 3.1 removed most of the stuff, it stopped having a use.

As I understand it that means MAC doesn't even support 3.0 or 3.1 so you need to set that version to 3.2 or 2.1. But I don't know MAC or this issue that well so I could be totally wrong :)

from dgame.

growlercab avatar growlercab commented on May 23, 2024

PR: #29

from dgame.

Dgame avatar Dgame commented on May 23, 2024

Thanks for your effort. I will ask him, if that works on his PC. If so, I will gladly merge this PR. :)

from dgame.

Dgame avatar Dgame commented on May 23, 2024

Should be fixed now.

from dgame.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.