Skip to content

API errors in anti aliasing tutorial #24

@JuanDiegoMontoya

Description

@JuanDiegoMontoya

There are some invalid glTexParameteri calls here that generate some errors (highlighted):

https://github.com/VictorGordan/opengl-tutorials/blob/main/YoutubeOpenGL%2022%20-%20Anti-Aliasing/Main.cpp#L149-L152

The specification says:

An INVALID_ENUM error is generated by TexParameter* if target is ei-
ther TEXTURE_2D_MULTISAMPLE or TEXTURE_2D_MULTISAMPLE_ARRAY,
and pname is any sampler state from table 23.18.

If we look at table 23.18, we can indeed see that all four of those parameters are sampler states, making all of these calls illegal.

These calls should be removed.

P.S. multisample textures cannot be sampled in GLSL, but only read via texelFetch and imageLoad, so it makes sense that they wouldn't support sampler state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions