mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
Merge branch 'master' into compute-shader-renderer
# Conflicts: # src/GPU.cpp # src/GPU.h # src/GPU2D_Soft.cpp # src/GPU3D.h # src/GPU3D_OpenGL.h # src/GPU_OpenGL.cpp # src/GPU_OpenGL.h # src/NDS.cpp # src/OpenGLSupport.cpp # src/frontend/qt_sdl/OSD.cpp # src/frontend/qt_sdl/main.cpp # src/frontend/qt_sdl/main.h
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright 2016-2022 melonDS team
|
||||
Copyright 2016-2023 melonDS team
|
||||
|
||||
This file is part of melonDS.
|
||||
|
||||
@ -26,6 +26,9 @@
|
||||
#define XXH_STATIC_LINKING_ONLY
|
||||
#include "xxhash/xxhash.h"
|
||||
|
||||
namespace melonDS
|
||||
{
|
||||
|
||||
using Platform::Log;
|
||||
using Platform::LogLevel;
|
||||
|
||||
@ -209,6 +212,13 @@ bool CompilerShader(GLuint& id, const std::string& source, const std::string& na
|
||||
Log(LogLevel::Debug, "shader source:\n--\n%s\n--\n", source.c_str());
|
||||
delete[] log;
|
||||
|
||||
Platform::FileHandle* logf = Platform::OpenFile("shaderfail.log", Platform::FileMode::WriteText);
|
||||
Platform::FileWrite(fs, len+1, 1, logf);
|
||||
Platform::CloseFile(logf);
|
||||
|
||||
glDeleteShader(ids[0]);
|
||||
glDeleteShader(ids[1]);
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -354,3 +364,5 @@ error:
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user