9 Followers
5 Following
270 Posts
Video games, open source, trying to make various things. PNW located
@aeva @landelare Now my cludgey pointless geometry shader draws a box *three* times!

@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.

@aeva @landelare https://nopaste.net/aTFTXWDVRU

Other than that just the usual gtk init and creating a GtkGlArea.

@aeva @landelare Oh, sure. I don't have a "glxinfo" command, but visualinfo produces this: https://nopaste.net/l92XzrU5kr which... oddly includes GL_EXT_shader_image_load_store.

I'm clearly doing something wrong. Not sure how I could get a working OpenGL program running, without it saying extensions that are supported, are supported. Maybe you have to set a specific... mode, before they get supported?

@landelare @aeva I was using printf in a CPU side program, to print the "GLEW_ARB_shader_image_load_store" variable, which I think the OpenGL Extension Wrangler would set to 1, if ARB_shader_image_load_store was supported by my graphics card.

I made sure to call glewInit and have a valid context and all.

@aeva @landelare Looks interesting! Hm...
printf("%d\n", GLEW_ARB_shader_image_load_store);
0
Looks like not that one either. GL_OES_mapbuffer maybe...? I might be hosed.
@landelare Oh... sorry, I can't use storage buffer objects. GLEW_ARB_shader_storage_buffer_object is 0.
@landelare Oh, I hadn't learned about those. Thanks!
@stephann So what, are you asking for donations so they can arm themselves with heavy weaponry? I'd be willing to fund a black powder cannon or two.