fix: freeing surface that is not created

This commit is contained in:
2026-02-25 09:43:05 +01:00
parent 8788706c0d
commit 33e9586487
6 changed files with 17 additions and 4 deletions

View File

@@ -164,7 +164,7 @@ void Application::Shutdown() {
SDL_DestroyRenderer(m_Renderer); SDL_DestroyRenderer(m_Renderer);
SDL_FreeSurface(m_Surface); // SDL_FreeSurface(m_Surface);
// Destroy window // Destroy window
SDL_DestroyWindow(m_Window); SDL_DestroyWindow(m_Window);

View File

@@ -1,2 +0,0 @@
.\vendor\premake\windows\premake5.exe vs2022
PAUSE

6
generate.bat Normal file
View File

@@ -0,0 +1,6 @@
echo Generating vs2022 project files...
.\vendor\premake\windows\premake5.exe vs2022
echo Generating compile_commands.json with premake-ecc
.\vendor\premake\windows\premake5.exe ecc
echo Done
PAUSE

7
generate.sh Executable file
View File

@@ -0,0 +1,7 @@
#!/bin/bash
echo "Generating Makefiles..."
./vendor/premake/linux/premake5 gmake2
echo "Generating compile_commands.json for clangd..."
./vendor/premake/linux/premake5 ecc
echo "Done!"
echo "Run `make help` to see how to build the project."

View File

@@ -1,3 +1,5 @@
require "plugins/ecc"
workspace "SakuraVNE" workspace "SakuraVNE"
architecture "x64" architecture "x64"
startproject "SakuraVNE" startproject "SakuraVNE"

View File

@@ -2,4 +2,4 @@
- add imgui-node-editor to the project in the premake file - add imgui-node-editor to the project in the premake file
- delete external/imgui from the node-editor and point it to the one in lib/imgui - delete external/imgui from the node-editor and point it to the one in lib/imgui
- fix seg fault after shutting down the program - fix seg fault after shutting down the program
update sdl2 to sdl3 for linux and windows - update sdl2 to sdl3 for linux and windows