summaryrefslogtreecommitdiff
path: root/Tests/LibGL/TestAPI.cpp
AgeCommit message (Collapse)Author
2022-12-25LibGL+LibWeb: Remove WebGL-specific API from GLContextJelle Raaijmakers
The OpenGL API has ways to retrieve these values, so let's make sure to implement them. :^)
2022-11-26LibGL: Add some tests for the buffer APIcflip
2022-09-16LibGL: Make GL::create_context fallibleAndrew Kaster
Propagate errors in places that are already set up to handle them, like WebGLRenderingContext and the Tubes demo, and convert other callers to using MUST.
2022-06-04LibGL: Reject GL_LEFT and GL_RIGHT in glCullFaceLuke Wilde
glCullFace only accepts GL_FRONT, GL_BACK and GL_FRONT_AND_BACK. We checked if the mode was valid by performing ``` cull_mode < GL_FRONT || cull_mode > GL_FRONT_AND_BACK ``` However, this range also contains GL_LEFT and GL_RIGHT, which we would accept when we should return a GL_INVALID_ENUM error.
2022-06-02LibGL: Check that texture name is allocated before marking it as freeLuke Wilde
glDeleteTextures previously did not check that the texture name was allocated by glGenTextures before adding it to the free texture name list. This means that if you delete a texture twice in a row, the name will appear twice in the free texture list, making glGenTextures return the same texture name twice in a row.