fix: freeing surface that is not created
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
6
generate.bat
Normal file
6
generate.bat
Normal 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
7
generate.sh
Executable 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."
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
require "plugins/ecc"
|
||||||
|
|
||||||
workspace "SakuraVNE"
|
workspace "SakuraVNE"
|
||||||
architecture "x64"
|
architecture "x64"
|
||||||
startproject "SakuraVNE"
|
startproject "SakuraVNE"
|
||||||
|
|||||||
2
todo.md
2
todo.md
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user