minetest/irr/src
HybridDog a45b04ffb4
Less explicit memory management in Irrlicht image writer classes (#15493)
CImageWriterPNG::writeImage() and writeJPEGFile() explicitly allocate
and deallocate memory with `new` and `delete`, which is prone to programming errors.
The code also has non-functional error handling:
When memory allocation fails, `new` throws an `std::bad_alloc` exception
and never returns `nullptr`, so the check for `nullptr` is always false.

Co-authored-by: DS <ds.desour@proton.me>
2024-12-03 16:52:48 +01:00
..
OpenGL Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
OpenGL3 Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
OpenGLES2 Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
vendor Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
BuiltInFont.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
builtInFont.png Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CAnimatedMeshSceneNode.cpp Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
CAnimatedMeshSceneNode.h Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
CAttributeImpl.h Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
CAttributes.cpp Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
CAttributes.h Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
CB3DMeshFileLoader.cpp Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CB3DMeshFileLoader.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CBillboardSceneNode.cpp Drop fixed pipeline lighting stuff (#15165) 2024-09-18 12:18:28 +02:00
CBillboardSceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CBlit.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CBoneSceneNode.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CBoneSceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CCameraSceneNode.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CCameraSceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CColorConverter.cpp Fix rendering regression with TGA type 1 files with BGRA8 color (#15402) 2024-11-19 13:37:05 +01:00
CColorConverter.h Fix rendering regression with TGA type 1 files with BGRA8 color (#15402) 2024-11-19 13:37:05 +01:00
CDummyTransformationSceneNode.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CDummyTransformationSceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CEGLManager.cpp Revert "Use EGL over GLX" (#15315) 2024-10-24 17:52:06 +02:00
CEGLManager.h Revert "Use EGL over GLX" (#15315) 2024-10-24 17:52:06 +02:00
CEmptySceneNode.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CEmptySceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CFileList.cpp Fix deletePathFromFilename returning cutoff filenames (#15211) 2024-09-30 22:41:53 +02:00
CFileList.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CFileSystem.cpp Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CFileSystem.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CFPSCounter.cpp Keep stats on hw buffer uploads 2024-08-28 15:38:02 +02:00
CFPSCounter.h Keep stats on hw buffer uploads 2024-08-28 15:38:02 +02:00
CGLTFMeshFileLoader.cpp Improve error messages for failed mesh loading 2024-11-09 18:13:56 +01:00
CGLTFMeshFileLoader.h Improve glTF logging (#15274) 2024-10-15 12:19:19 +02:00
CGLXManager.cpp Revert "Use EGL over GLX" (#15315) 2024-10-24 17:52:06 +02:00
CGLXManager.h Revert "Use EGL over GLX" (#15315) 2024-10-24 17:52:06 +02:00
CGUIButton.cpp Make button sprites (scrollbar arrows) DPI-aware (#14772) 2024-06-26 15:25:27 +02:00
CGUIButton.h Make button sprites (scrollbar arrows) DPI-aware (#14772) 2024-06-26 15:25:27 +02:00
CGUICheckBox.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUICheckBox.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIComboBox.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIComboBox.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIEditBox.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIEditBox.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIEnvironment.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIEnvironment.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIFileOpenDialog.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIFileOpenDialog.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIFont.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIFont.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIImage.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIImage.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIImageList.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIImageList.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIListBox.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIListBox.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIScrollBar.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIScrollBar.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUISkin.cpp Move Minetest GUISkin -> Irrlicht CGUISkin 2024-09-08 13:53:33 +02:00
CGUISkin.h Move Minetest GUISkin -> Irrlicht CGUISkin 2024-09-08 13:53:33 +02:00
CGUISpriteBank.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUISpriteBank.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIStaticText.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUIStaticText.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUITabControl.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CGUITabControl.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CImage.cpp Fix rendering regression with TGA type 1 files with BGRA8 color (#15402) 2024-11-19 13:37:05 +01:00
CImage.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CImageLoaderJPG.cpp Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CImageLoaderJPG.h Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CImageLoaderPNG.cpp Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CImageLoaderPNG.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CImageLoaderTGA.cpp Fix rendering regression with TGA type 1 files with BGRA8 color (#15402) 2024-11-19 13:37:05 +01:00
CImageLoaderTGA.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CImageWriterJPG.cpp Less explicit memory management in Irrlicht image writer classes (#15493) 2024-12-03 16:52:48 +01:00
CImageWriterJPG.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CImageWriterPNG.cpp Less explicit memory management in Irrlicht image writer classes (#15493) 2024-12-03 16:52:48 +01:00
CImageWriterPNG.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CIrrDeviceLinux.cpp Remove unused and rarely used irrlicht color functions (#15442) 2024-11-18 00:02:53 +01:00
CIrrDeviceLinux.h Better UX when touch events aren't supported by Irrlicht device (#15288) 2024-10-16 21:37:00 +02:00
CIrrDeviceOSX.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CIrrDeviceOSX.mm Non-SDL: Add opengl3 support 2024-11-15 12:18:48 +01:00
CIrrDeviceSDL.cpp Non-SDL: Add opengl3 support 2024-11-15 12:18:48 +01:00
CIrrDeviceSDL.h Better UX when touch events aren't supported by Irrlicht device (#15288) 2024-10-16 21:37:00 +02:00
CIrrDeviceStub.cpp Non-SDL: Add opengl3 support 2024-11-15 12:18:48 +01:00
CIrrDeviceStub.h Non-SDL: Add opengl3 support 2024-11-15 12:18:48 +01:00
CIrrDeviceWin32.cpp Non-SDL: Add opengl3 support 2024-11-15 12:18:48 +01:00
CIrrDeviceWin32.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CLimitReadFile.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CLimitReadFile.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CLogger.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CLogger.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CMakeLists.txt Update CMakeLists to use add_compile_definitions (#15483) 2024-11-29 12:02:48 +01:00
CMemoryFile.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CMemoryFile.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CMeshCache.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CMeshCache.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CMeshManipulator.cpp Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
CMeshManipulator.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CMeshSceneNode.cpp Drop fixed pipeline lighting stuff (#15165) 2024-09-18 12:18:28 +02:00
CMeshSceneNode.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CNSOGLManager.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CNSOGLManager.mm Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CNullDriver.cpp Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
CNullDriver.h Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COBJMeshFileLoader.cpp Drop fixed pipeline lighting stuff (#15165) 2024-09-18 12:18:28 +02:00
COBJMeshFileLoader.h Drop fixed pipeline lighting stuff (#15165) 2024-09-18 12:18:28 +02:00
COGLESCoreExtensionHandler.h ogles 2 driver: Delete some dead code 2024-11-08 20:43:24 +01:00
COpenGLCacheHandler.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
COpenGLCacheHandler.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
COpenGLCommon.h Try to fix macro definition order problem with OpenGL code 2024-04-15 19:27:05 +02:00
COpenGLCoreCacheHandler.h Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLCoreFeature.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
COpenGLCoreRenderTarget.h Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLCoreTexture.h Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLDriver.cpp Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLDriver.h Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLExtensionHandler.cpp Implement support for FSAA in combination with post-processing (#15392) 2024-11-18 14:06:48 +01:00
COpenGLExtensionHandler.h Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
COpenGLMaterialRenderer.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
COpenGLSLMaterialRenderer.cpp Work around Intel driver bug on Win 8.1 and older 2024-11-10 17:44:45 +01:00
COpenGLSLMaterialRenderer.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
COSOperator.cpp Fix some clang compiler warnings (#14654) 2024-05-15 19:56:25 +02:00
COSOperator.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CReadFile.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CReadFile.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CSceneCollisionManager.cpp Debloat IVideoDriver and IrrlichtDevice includes (#15080) 2024-08-31 11:44:30 +02:00
CSceneCollisionManager.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CSceneManager.cpp Improve error messages for failed mesh loading 2024-11-09 18:13:56 +01:00
CSceneManager.h Mark a bunch of classes as final 2024-09-02 21:50:13 +02:00
CSDLManager.cpp Try to fix macro definition order problem with OpenGL code 2024-04-15 19:27:05 +02:00
CSDLManager.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CSkinnedMesh.cpp Support floating-point animation frame numbers 2024-10-10 21:39:57 +02:00
CSkinnedMesh.h Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
CTimer.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CWGLManager.cpp Expose OpenGL debugging as a normal setting 2024-04-15 17:48:33 +02:00
CWGLManager.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CWriteFile.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CWriteFile.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CXMeshFileLoader.cpp Refactor global inversed matrix usage (+ minor fix) 2024-10-10 21:39:57 +02:00
CXMeshFileLoader.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
CZipReader.cpp Fix deletePathFromFilename returning cutoff filenames (#15211) 2024-09-30 22:41:53 +02:00
CZipReader.h Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
IAttribute.h Irrlicht cleanups (mostly getting rid of core::array) 2024-08-17 19:49:11 +02:00
Irrlicht.cpp Cleanup headers in irr/include/ (#15181) 2024-10-18 10:58:32 +02:00
mt_opengl_loader.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
os.cpp Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
os.h Add some debug helpers around this area 2024-09-16 23:12:52 +02:00
SB3DStructs.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00
SoftwareDriver2_helper.h Copy irrlichtmt to <root>/irr/ 2024-03-26 21:39:02 +01:00