-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apparent misfire (wrong extension loaded) when generating GL_EXT_texture_filter_minmax #126
Comments
Note: I've identified my |
Thanks for the report, I'll dig into it when I find some time this weekend. |
This looks like a bug in the specifications, looking into Definition for <extension name="GL_EXT_texture_filter_minmax" supported="gl|glcore|gles2">
<require>
<enum name="GL_RASTER_MULTISAMPLE_EXT"/>
<enum name="GL_RASTER_SAMPLES_EXT"/>
<enum name="GL_MAX_RASTER_SAMPLES_EXT"/>
<enum name="GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT"/>
<enum name="GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT"/>
<enum name="GL_EFFECTIVE_RASTER_SAMPLES_EXT"/>
<command name="glRasterSamplesEXT"/>
</require>
</extension> And the one for <extension name="GL_EXT_raster_multisample" supported="gl|glcore|gles2">
<require>
<enum name="GL_RASTER_MULTISAMPLE_EXT"/>
<enum name="GL_RASTER_SAMPLES_EXT"/>
<enum name="GL_MAX_RASTER_SAMPLES_EXT"/>
<enum name="GL_RASTER_FIXED_SAMPLE_LOCATIONS_EXT"/>
<enum name="GL_MULTISAMPLE_RASTERIZATION_ALLOWED_EXT"/>
<enum name="GL_EFFECTIVE_RASTER_SAMPLES_EXT"/>
<command name="glRasterSamplesEXT"/>
</require>
</extension> Looking at <extension name="GL_ARB_texture_filter_minmax" supported="gl|glcore">
<require>
<enum name="GL_TEXTURE_REDUCTION_MODE_ARB"/>
<enum name="GL_WEIGHTED_AVERAGE_ARB"/>
</require>
</extension> I'll report it to Khronos. |
Once the bug is fixed in the registry glad will automatically pull in the changes and everything should work as it should (gonna leave the issue open for now). Good find! |
Khronos fixed the bug, I am closing it here as well. Everything should be fine after the specification reset on the website in ~12 Hours. |
Thanks! |
Short version: Requesting
EXT_texture_filter_minmax
gave meEXT_raster_multisample
instead?Long version:
I ran GLAD off the webservice. The comment block in glad.c was
The generated files replaced, in version control, a version of glad.c and glad.h produced by exactly the same arguments except no
GL_EXT_texture_filter_minmax
. The diff was as follows:(This diff has been slightly hand edited for example I added some printfs.)
addminmax.zip
)
The following issues are seen:
GL_EXT_texture_filter_minmax
are not generated by GLAD. The docs for the extension are here. I expectTEXTURE_REDUCTION_MODE_EXT
andWEIGHTED_AVERAGE_EXT
symbols. These are not in the diff, however in the diff for GLAD I do find symbols such asglRasterSamplesEXT
,RASTER_SAMPLES_EXT
and MULTISAMPLE_RASTERIZATION_ALLOWED_EXT being defined AND LOADED INload_GL_EXT_texture_filter_minmax()
. In fact GLAD appears to be creating exactly those symbols used inEXT_raster_multisample
, which I did not request (docs here).GLAD_GL_EXT_texture_filter_minmax
is a true value, yet the code:Results in the OpenGL error 1280 Invalid Enum being generated.
Conclusion: GLAD appears to be reading the wrong extension out of the spec and mislabeling it as
GL_EXT_texture_filter_minmax
.The text was updated successfully, but these errors were encountered: