Terrible time getting anything openGL related to work


I’ve got a couple of examples that are supposed to simply draw a triangle and I keep getting a black screen.

I was wondering if some kind person could run the following code, on v 0.7 and let me know if they get a white triangle.

This code is taken directly from the GLAbstraction home page.

I have tried building some opengl programs in C and they work fine, so there seems to be some julia specific issue.

Thank you !

using ModernGL, GLWindow, GLAbstraction, GLFW, GeometryTypes

window = GLWindow.create_glcontext("Example", resolution=(512, 512), debugging=true)

const vsh = vert"""
in vec2 position;
void main(){
	gl_Position = vec4(position, 0, 1.0);
const fsh = frag"""
out vec4 outColor;
void main() {
	outColor = vec4(1.0, 1.0, 1.0, 1.0);

const triangle = std_renderobject(
	Dict{Symbol, Any}(
        :position => GLBuffer(Point2f0[(0.0, 0.5), (0.5, -0.5), (-0.5,-0.5)]),
	LazyShader(vsh, fsh)

glClearColor(0, 0, 0, 1)

while isopen(window)

Glancing at the REQUIRE file it could be that this package has not been updated for 0.7 / 1.0 yet

So it turns out that the built-in test for ModernGL does work, albeit with lots of warning messages.

The example on the homepage is broken. at some point I’ll figure out why that is.

In the meantime, I’m hoping it will not be too long before ModernGL is updated for 0.7/1.0