ladybird/Userland/Libraries/LibGL
Jelle Raaijmakers c21a3b3029 LibGL: Better handling of texture targets and default textures
We were lacking support for default textures (i.e. calling
`glBindTexture` with a `texture` argument of `0`) which caused our
Quake2 port to render red screens whenever a video was playing. Every
texture unit is now initialized with a default 2D texture.

Additionally, we had this concept of a "currently bound target" on our
texture units which is not how OpenGL wants us to handle targets.
Calling `glBindTexture` should set the texture for the provided target
only, making it sort of an alias for future operations on the same
target.

Finally, `glDeleteTextures` should not remove the bound texture from
the target in the texture unit, but it should reset it to the default
texture.
2022-03-08 15:32:35 +01:00
..
GL LibGL: Better handling of texture targets and default textures 2022-03-08 15:32:35 +01:00
Tex LibGL: Better handling of texture targets and default textures 2022-03-08 15:32:35 +01:00
CMakeLists.txt LibGL: Better handling of texture targets and default textures 2022-03-08 15:32:35 +01:00
GLBlend.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLColor.cpp LibGL: Implement glColor4b 2022-01-20 10:35:01 +01:00
GLContext.cpp LibGL: Add context lifetime debug output 2022-01-14 21:38:09 +01:00
GLContext.h LibGL: East-const glTex* methods 2022-03-08 15:32:35 +01:00
GLDraw.cpp LibGL: Stub glPointSize 2022-01-11 23:47:42 +01:00
GLFog.cpp LibGL: Implement glFogi 2021-08-25 23:50:54 +04:30
GLLights.cpp LibGL: Implement glMateriali{v} 2022-01-26 16:44:11 +01:00
GLLists.cpp LibGL: Implement glIsList 2021-12-12 21:51:08 +01:00
GLMap.cpp LibGL: Stub lots of map-related methods 2021-12-27 11:58:43 +01:00
GLMatrix.cpp LibGL: Rename GLMat.cpp to GLMatrix.cpp 2022-01-20 10:35:01 +01:00
GLStencil.cpp LibGL+LibSoftGPU: Implement the stencil buffer 2022-01-17 12:49:00 +01:00
GLTexture.cpp LibGL: Implement glActiveTextureARB() 2022-01-19 19:57:49 +01:00
GLUtils.cpp LibGL: Implement glClearDepthf and store as float 2022-02-22 23:48:59 +00:00
GLVert.cpp LibGL: Add stubs for multitexturing and announce GL_ARB_multitexture 2022-01-19 19:57:49 +01:00
GLVertexArrays.cpp LibGL: Implement glDrawElements 2021-08-14 12:49:29 +02:00
SoftwareGLContext.cpp LibGL: Better handling of texture targets and default textures 2022-03-08 15:32:35 +01:00
SoftwareGLContext.h LibGL: Better handling of texture targets and default textures 2022-03-08 15:32:35 +01:00