1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-04 04:47:36 +00:00
serenity/Userland/Libraries/LibGL
Daniel Bertalan d7b6cc6421 Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr
Our existing implementation did not check the element type of the other
pointer in the constructors and move assignment operators. This meant
that some operations that would require explicit casting on raw pointers
were done implicitly, such as:
- downcasting a base class to a derived class (e.g. `Kernel::Inode` =>
  `Kernel::ProcFSDirectoryInode` in Kernel/ProcFS.cpp),
- casting to an unrelated type (e.g. `Promise<bool>` => `Promise<Empty>`
  in LibIMAP/Client.cpp)

This, of course, allows gross violations of the type system, and makes
the need to type-check less obvious before downcasting. Luckily, while
adding the `static_ptr_cast`s, only two truly incorrect usages were
found; in the other instances, our casts just needed to be made
explicit.
2021-09-03 23:20:23 +02:00
..
GL LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
Tex Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr 2021-09-03 23:20:23 +02:00
Clipper.cpp LibGL: Fix clipping and interpolate vertex attributes 2021-08-18 20:30:58 +02:00
Clipper.h LibGL: Fix clipping and interpolate vertex attributes 2021-08-18 20:30:58 +02:00
CMakeLists.txt LibGL: Implement glFogfv 2021-08-25 23:50:54 +04:30
DepthBuffer.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
DepthBuffer.h Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLBlend.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLColor.cpp LibGL: Implement glColor3fv 2021-08-13 16:54:37 +04:30
GLContext.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLContext.h LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
GLFog.cpp LibGL: Implement glFogi 2021-08-25 23:50:54 +04:30
GLLights.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLLists.cpp LibGL: Implement glGenLists and a few friends 2021-05-11 14:09:17 +01:00
GLMat.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLStruct.h LibGL: Fix clipping and interpolate vertex attributes 2021-08-18 20:30:58 +02:00
GLTexture.cpp LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
GLUtils.cpp LibGL: Implement glPolygonOffset 2021-09-02 21:00:24 +04:30
GLVert.cpp LibGL: Implement glTexCoord4fv 2021-08-14 12:49:29 +02:00
GLVertexArrays.cpp LibGL: Implement glDrawElements 2021-08-14 12:49:29 +02:00
SoftwareGLContext.cpp LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
SoftwareGLContext.h LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
SoftwareRasterizer.cpp LibGL: Implement glPolygonOffset 2021-09-02 21:00:24 +04:30
SoftwareRasterizer.h LibGL: Implement glPolygonOffset 2021-09-02 21:00:24 +04:30