summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bgfx/src/shader.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2017-12-01 13:22:27 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-12-01 13:22:27 +0100
commit39176274946d70ff520f265dee8fbd16d5fe0000 (patch)
tree318801d93146752050c9a492654ae3738820e3b9 /3rdparty/bgfx/src/shader.cpp
parent6829ecb3b037d6bfbe0b84e818d17d712f71bce6 (diff)
Updated GENie, BGFX, BX, added BIMG since it is separated now, updated all shader binaries and MAME part of code to support new interfaces [Miodrag Milanovic]
Diffstat (limited to '3rdparty/bgfx/src/shader.cpp')
-rw-r--r--3rdparty/bgfx/src/shader.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/3rdparty/bgfx/src/shader.cpp b/3rdparty/bgfx/src/shader.cpp
index 76493223590..6e967d534eb 100644
--- a/3rdparty/bgfx/src/shader.cpp
+++ b/3rdparty/bgfx/src/shader.cpp
@@ -15,7 +15,7 @@ namespace bgfx
bx::WriterI* writer = reinterpret_cast<bx::WriterI*>(_userData);
char temp[512];
toString(temp, sizeof(temp), _instruction);
- bx::write(writer, temp, (int32_t)bx::strnlen(temp) );
+ bx::write(writer, temp, (int32_t)bx::strLen(temp) );
return true;
}
@@ -24,7 +24,7 @@ namespace bgfx
bx::WriterI* writer = reinterpret_cast<bx::WriterI*>(_userData);
char temp[512];
toString(temp, sizeof(temp), _instruction);
- bx::write(writer, temp, (int32_t)bx::strnlen(temp) );
+ bx::write(writer, temp, (int32_t)bx::strLen(temp) );
return true;
}
@@ -33,7 +33,7 @@ namespace bgfx
bx::WriterI* writer = reinterpret_cast<bx::WriterI*>(_userData);
char temp[512];
toString(temp, sizeof(temp), _instruction);
- bx::write(writer, temp, (int32_t)bx::strnlen(temp) );
+ bx::write(writer, temp, (int32_t)bx::strLen(temp) );
return true;
}
@@ -107,7 +107,7 @@ namespace bgfx
bx::read(_reader, regCount, _err);
}
- uint16_t shaderSize;
+ uint32_t shaderSize;
bx::read(_reader, shaderSize, _err);
if (!_err->isOk() ) { return; }