1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-04 11:27:35 +00:00
serenity/Userland/Libraries/LibGL/Tex
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
..
MipMap.h LibGL: Return white texel when sampling uninitialized texture 2021-08-18 20:30:58 +02:00
NameAllocator.cpp LibGL: Add Texture Name Allocation 2021-05-26 16:36:53 +04:30
NameAllocator.h LibGL: Add Texture Name Allocation 2021-05-26 16:36:53 +04:30
Sampler2D.cpp LibGL: Improve texture sampling performance 2021-08-18 20:30:58 +02:00
Sampler2D.h LibGL: Turn Sampler2D into an actual class 2021-08-12 18:58:41 +02:00
Texture.h LibGL: Introduce Texture base class for all texture types 2021-05-30 00:32:37 +01:00
Texture2D.cpp LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
Texture2D.h LibGL: Implement glTexSubImage2D 2021-09-02 21:00:24 +04:30
TextureUnit.cpp Everywhere: Prevent risky implicit casts of (Nonnull)RefPtr 2021-09-03 23:20:23 +02:00
TextureUnit.h LibGL: Implement glTexEnvf 2021-08-26 19:54:31 +02:00