Just learned that there is no way for a GLSL shader to send data to the CPU side program.
-
@kertinker @landelare what is the GL major and minor version reported by your program?
@kertinker @landelare I'm not familiar with GtkGlArea, but I spotted this in the docs https://docs.gtk.org/gtk4/method.GLArea.set_required_version.html
You have to call gtk_gl_area_set_required_version before the widget's rendering context is created, but I imagine if you set it to 4.6 (based on your earlier visualinfo paste) then you should be able to see the extensions you are missing. Ideally you'll want to set it to the lowest required version you need, but 4.6 is fine for debugging.
-
@kertinker @landelare I'm not familiar with GtkGlArea, but I spotted this in the docs https://docs.gtk.org/gtk4/method.GLArea.set_required_version.html
You have to call gtk_gl_area_set_required_version before the widget's rendering context is created, but I imagine if you set it to 4.6 (based on your earlier visualinfo paste) then you should be able to see the extensions you are missing. Ideally you'll want to set it to the lowest required version you need, but 4.6 is fine for debugging.
@kertinker @landelare it occurred to me just now if there's an explicit GL context initialization step needed that is missing entirely, then GLEW might be reporting 0 for most or all extensions depending on the platform you're on
-
@kertinker @landelare it occurred to me just now if there's an explicit GL context initialization step needed that is missing entirely, then GLEW might be reporting 0 for most or all extensions depending on the platform you're on
This post is deleted! -
@kertinker @landelare it occurred to me just now if there's an explicit GL context initialization step needed that is missing entirely, then GLEW might be reporting 0 for most or all extensions depending on the platform you're on
@aeva @kertinker This crap is why I'm using DirectX.
-
@aeva @kertinker This crap is why I'm using DirectX.
@landelare @kertinker as it happens, Windows is the really weird one for GL
-
@landelare @kertinker as it happens, Windows is the really weird one for GL
@landelare @kertinker granted they all have quirks, but that's the tradeoff for not being shackled to microslop
-
@landelare @kertinker granted they all have quirks, but that's the tradeoff for not being shackled to microslop
@landelare @kertinker not to imply that d3d doesn't also have its own problems, but I don't think it's especially helpful to dunk
-
@aeva @kertinker This crap is why I'm using DirectX.
@landelare Can't blame OpenGL in this case. @aeva pointed out I missed an initialization function, in GTK not OpenGL, so it would have failed even if I used DirectX. Looks like the problem is me not reading the documentation correctly.
-
@kertinker @landelare I'm not familiar with GtkGlArea, but I spotted this in the docs https://docs.gtk.org/gtk4/method.GLArea.set_required_version.html
You have to call gtk_gl_area_set_required_version before the widget's rendering context is created, but I imagine if you set it to 4.6 (based on your earlier visualinfo paste) then you should be able to see the extensions you are missing. Ideally you'll want to set it to the lowest required version you need, but 4.6 is fine for debugging.
@aeva Huh, it must default to a really low version, which is why so many extensions say they're unsupported. Thanks so much! I'll go try it right away.
...
Yes, all extensions except ARB_vertex_program are now supported!
-
@aeva Huh, it must default to a really low version, which is why so many extensions say they're unsupported. Thanks so much! I'll go try it right away.
...
Yes, all extensions except ARB_vertex_program are now supported!
-
@landelare Can't blame OpenGL in this case. @aeva pointed out I missed an initialization function, in GTK not OpenGL, so it would have failed even if I used DirectX. Looks like the problem is me not reading the documentation correctly.
@kertinker @landelare these things happen, but we got it working :D
-
@kertinker @landelare these things happen, but we got it working :D
@aeva @landelare Now my cludgey pointless geometry shader draws a box *three* times!
-
@aeva @landelare Now my cludgey pointless geometry shader draws a box *three* times!
@kertinker @landelare woohoo! :D