mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 00:01:00 +00:00
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. |
||
|---|---|---|
| .. | ||
| GL | ||
| Tex | ||
| CMakeLists.txt | ||
| GLBlend.cpp | ||
| GLColor.cpp | ||
| GLContext.cpp | ||
| GLContext.h | ||
| GLDraw.cpp | ||
| GLFog.cpp | ||
| GLLights.cpp | ||
| GLLists.cpp | ||
| GLMap.cpp | ||
| GLMatrix.cpp | ||
| GLStencil.cpp | ||
| GLTexture.cpp | ||
| GLUtils.cpp | ||
| GLVert.cpp | ||
| GLVertexArrays.cpp | ||
| SoftwareGLContext.cpp | ||
| SoftwareGLContext.h | ||