Skip to content

Commit

Permalink
[Video] Fix up building on android
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Aug 7, 2017
1 parent d425d47 commit 96306c0
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions Source/Project64-video/Project64-video.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
<ItemGroup>
<ClInclude Include="F3DTEXA.h" />
<ClInclude Include="Gfx_1.3.h" />
<ClInclude Include="Renderer\glitchmain.h" />
<ClInclude Include="Renderer\Renderer.h" />
<ClInclude Include="Renderer\types.h" />
<ClInclude Include="ScreenResolution.h" />
Expand Down
3 changes: 3 additions & 0 deletions Source/Project64-video/Project64-video.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@
<ClInclude Include="F3DTEXA.h">
<Filter>ucode</Filter>
</ClInclude>
<ClInclude Include="Renderer\glitchmain.h">
<Filter>Renderer</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="CRC.cpp">
Expand Down
5 changes: 3 additions & 2 deletions Source/Project64-video/Renderer/OGLEScombiner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@

void vbo_draw();

static int g_alpha_ref, g_alpha_func;
static gfxCmpFnc_t g_alpha_func;
static int g_alpha_ref;
static bool g_alpha_test = 0;

static float g_texture_env_color[4];
Expand Down Expand Up @@ -605,7 +606,7 @@ void free_combiners()
g_shader_programs.clear();

g_alpha_ref = 0;
g_alpha_func = 0;
g_alpha_func = GFX_CMP_NEVER;
g_alpha_test = 0;

memset(g_texture_env_color, 0, sizeof(g_texture_env_color));
Expand Down
4 changes: 2 additions & 2 deletions Source/Project64-video/Renderer/OGLESglitchmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,7 +936,7 @@ uint32_t gfxGet(uint32_t pname, uint32_t plength, FxI32 *params)
params[0] = 256;
return 4;
break;
case GFX_FOG_TABLE_ENTRIES:
case GR_FOG_TABLE_ENTRIES:
if (plength < 4 || params == NULL) return 0;
params[0] = 64;
return 4;
Expand All @@ -953,7 +953,7 @@ uint32_t gfxGet(uint32_t pname, uint32_t plength, FxI32 *params)
params[1] = 65535;
return 8;
break;
case GFX_LFB_PIXEL_PIPE:
case GR_LFB_PIXEL_PIPE:
if (plength < 4 || params == NULL) return 0;
params[0] = FXFALSE;
return 4;
Expand Down
1 change: 1 addition & 0 deletions Source/Project64-video/Renderer/glitchmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ extern int dumping;
#endif

#include <Project64-video/trace.h>
#include "types.h"

#define zscale 1.0f

Expand Down

0 comments on commit 96306c0

Please sign in to comment.