mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-23 16:09:47 +00:00
(glslang) Compatibility tweaks for MSVC 2010 compatibility
This commit is contained in:
parent
24306429bd
commit
8771171f63
2
deps/glslang/glslang.cpp
vendored
2
deps/glslang/glslang.cpp
vendored
@ -363,7 +363,7 @@ bool glslang::compile_spirv(const string &source, Stage stage, std::vector<uint3
|
||||
messages, &msg, forbid_include))
|
||||
{
|
||||
fprintf(stderr, "%s\n", msg.c_str());
|
||||
return {};
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!shader.parse(&process.GetResources(), 100, false, messages))
|
||||
|
@ -887,8 +887,8 @@ void HlslParseContext::flatten(const TSourceLoc& loc, const TVariable& variable)
|
||||
const TType& type = variable.getType();
|
||||
|
||||
// emplace gives back a pair whose .first is an iterator to the item...
|
||||
auto entry = flattenMap.emplace(variable.getUniqueId(),
|
||||
TFlattenData(type.getQualifier().layoutBinding));
|
||||
auto entry = flattenMap.emplace(std::pair<int, TFlattenData>(variable.getUniqueId(),
|
||||
TFlattenData(type.getQualifier().layoutBinding)));
|
||||
|
||||
// ... and the item is a map pair, so first->second is the TFlattenData itself.
|
||||
flatten(loc, variable, type, entry.first->second, "");
|
||||
|
@ -1290,8 +1290,9 @@ static bool vulkan_alive(void *data)
|
||||
|
||||
static bool vulkan_suppress_screensaver(void *data, bool enable)
|
||||
{
|
||||
(void)data;
|
||||
bool enabled = enable;
|
||||
(void)data;
|
||||
|
||||
return video_context_driver_suppress_screensaver(&enabled);
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,12 @@ struct glslang_meta
|
||||
{
|
||||
std::vector<glslang_parameter> parameters;
|
||||
std::string name;
|
||||
glslang_format rt_format = SLANG_FORMAT_UNKNOWN;
|
||||
glslang_format rt_format;
|
||||
|
||||
glslang_meta()
|
||||
{
|
||||
rt_format = SLANG_FORMAT_UNKNOWN;
|
||||
}
|
||||
};
|
||||
|
||||
struct glslang_output
|
||||
|
@ -2,6 +2,9 @@
|
||||
#ifdef WANT_GLSLANG
|
||||
#ifdef _MSC_VER
|
||||
#include <compat/msvc.h>
|
||||
#ifdef strtoull
|
||||
#undef strtoull
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include "../deps/glslang/glslang.cpp"
|
||||
|
Loading…
Reference in New Issue
Block a user