Merge remote-tracking branch 'refs/remotes/origin/master' into reflection-mapping
This commit is contained in:
commit
d2ee4744a9
|
|
@ -20,7 +20,7 @@ namespace Ndk
|
||||||
{
|
{
|
||||||
eulerAngles.SetConstructor([] (Nz::LuaInstance& lua, Nz::EulerAnglesd* instance, std::size_t argumentCount)
|
eulerAngles.SetConstructor([] (Nz::LuaInstance& lua, Nz::EulerAnglesd* instance, std::size_t argumentCount)
|
||||||
{
|
{
|
||||||
std::size_t argCount = std::min<std::size_t>(argumentCount, 1U);
|
std::size_t argCount = std::min<std::size_t>(argumentCount, 3U);
|
||||||
|
|
||||||
switch (argCount)
|
switch (argCount)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,8 +17,6 @@
|
||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
Nz::ContextParameters::defaultCompatibilityProfile = true;
|
|
||||||
|
|
||||||
Ndk::Application app;
|
Ndk::Application app;
|
||||||
|
|
||||||
// Mix all sounds in mono (in order to give them 3D position)
|
// Mix all sounds in mono (in order to give them 3D position)
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,8 @@ namespace Nz
|
||||||
|
|
||||||
void OverrideShader(const String& path, String* source)
|
void OverrideShader(const String& path, String* source)
|
||||||
{
|
{
|
||||||
|
ErrorFlags errFlags(ErrorFlag_Silent | ErrorFlag_ThrowExceptionDisabled);
|
||||||
|
|
||||||
File shaderFile(path, Nz::OpenMode_ReadOnly | Nz::OpenMode_Text);
|
File shaderFile(path, Nz::OpenMode_ReadOnly | Nz::OpenMode_Text);
|
||||||
if (shaderFile.IsOpen())
|
if (shaderFile.IsOpen())
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue