Skip to content

Commit

Permalink
Fix Linux build.
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcy committed Mar 6, 2016
1 parent 77fdf27 commit 9150ea1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/renderer_bgfx/DynamicLight.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ void DynamicLightManager::updateTextures(int frameNo)
// Write the light index.
indicesTextureData_[buffer][indicesOffset++] = lightIndex;

if (indicesOffset > uint16_t(USHRT_MAX - 2))
if (indicesOffset > uint16_t(UINT16_MAX - 2))
{
ri.Printf(PRINT_WARNING, "Too many assigned lights.\n");
break;
Expand Down
2 changes: 1 addition & 1 deletion premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ newaction
command = command .. string.format(" -i \"shaders;%s\" -f \"%s\" -o \"%s\" --varyingdef shaders/varying.def.sc --bin2c \"%s\" --type %s", path.join(BGFX_PATH, "src"), inputFilename, tempOutputFilename, variableName, type)

if defines ~= nil then
command = command .. " --define " .. defines
command = command .. " --define \"" .. defines .. "\""
end

if renderer == "gl" then
Expand Down

0 comments on commit 9150ea1

Please sign in to comment.