-
Notifications
You must be signed in to change notification settings - Fork 34
Test fails to run on Mac #62
Comments
same problem here, "ARB_conservative_depth" is a feature of OpenGL 4.2, but Mac still get stuck in 4.1 for now. ref: https://www.opengl.org/registry/specs/ARB/conservative_depth.txt |
Can you comment out this line and try again? |
yes this solves the issue. Could you test for the OGL version and make this conditional? |
Great :) Yeah something like that... I'll create a fix tomorrow ;) |
Another idea... Can you report the output of these:
and in a new session:
|
|
|
What?! :D using GLWindow, ModernGL
GLWindow.create_glcontext(major=4, minor=1)
i = Ref{GLint}(0)
glGetIntegerv(GL_NUM_EXTENSIONS, i)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i[]-1)]
filter(exts) do e
contains(e, "depth")
end |
Sorry, I didn't read the error entirely...That's sort of to be expected...Let me fix this first! |
Okay, now: Pkg.checkout("GLWindow")
using GLWindow, ModernGL
GLWindow.create_glcontext(major=4, minor=1)
bytestring(glGetString(GL_VERSION))
i = glGetIntegerv(GL_NUM_EXTENSIONS)
exts = [bytestring(glGetStringi(GL_EXTENSIONS, x)) for x=0:(i-1)];
filter(exts) do e
contains(e, "depth")
end |
|
Thanks! Sorry that I need to use you for this annoying kind of debugging! screen = Screen(name, resolution=resolution, debugging=debugging, major=4, minor=1)
# I don't know what your maximum supported minor is, so you could also try
# minor = 2 or, 3, or 4 |
This must go together with the first fix, since it doesn't have the extension. But with some luck, it could just offer it without extension. I just can't believe, that the infamous linux drivers for an older graphic card support this and OSX with a relatively good OpenGL support doesn't ;) |
no does not seem to work. If I change minor to 2 I get an issue
Note that Apple is ditching OpenGL in favor for Metal. So unfortunately support will not be improved. |
Yeah I know... It's such an incredibly annoying move by Apple... |
Can you see if #64 fixes it? |
Nope. I did
and still get
|
Sorry I should have tested it better :( Now it should work! |
(That's the contents of the window that pops up.) |
yea works now. Thanks Simon |
Thanks! :) |
I desperately wanted this to work, but...
https://gist.github.com/321de67dfcda9d6b9d3e
Note that this is on an underpowered MacBook (the newish, small one) with the following (inbuilt) graphics card:
Intel HD Graphics 5300:
Chipset Model: Intel HD Graphics 5300
Type: GPU
Bus: Built-In
VRAM (Dynamic, Max): 1536 MB
Vendor: Intel (0x8086)
Device ID: 0x161e
Revision ID: 0x0009
Displays:
Color LCD:
Display Type: Retina LCD
Resolution: 2304 x 1440 Retina
Retina: Yes
Pixel Depth: 32-Bit Color (ARGB8888)
Main Display: Yes
Mirror: Off
Online: Yes
Built-In: Yes
The text was updated successfully, but these errors were encountered: