Skip to content

Wrong extension checking #5

@BoyBaykiller

Description

@BoyBaykiller

I was trying to run the precompiled binary contained in bin_x86_64_windows. Output:
image

I don't exactly know how hasARBTextureFilterAnisotropic is set here:

enforce(hasARBTextureFilterAnisotropic, "The graphics card does not support ARB_texture_filter_anisotropic");
I do know though that my GPU not only supports OpenGL 4.6 (where anisotropic filtering is core) it also has GL_ARB_texture_filter_anisotropic and GL_EXT_texture_filter_anisotropic.

This project is quite old so if you're not willing to work on it anymore I understand that. If you do, here is what I would suggest:

According to the OpenGL Wiki the correct way to check for a core extensions is to both check for the version which is 4.6 and the presence of the extension which would be GL_ARB_texture_filter_anisotropic. Since GL_EXT_texture_filter_anisotropic is considered to be a ubiquitous extension it would make sense to also check for that - and then use the
corresponding functionality provided by that extension.

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions