Skip to content

Commit

Permalink
Fix a few broken tests for DEBUG preprocessor macro (#if -> #ifdef).
Browse files Browse the repository at this point in the history
  • Loading branch information
tamlin-mike authored and Xottab-DUTY committed Aug 5, 2017
1 parent 18066a6 commit 7f68ed6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/Layers/xrRender/occRasterizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include "stdafx.h"
#include "occRasterizer.h"

#if DEBUG
#ifdef DEBUG
#include "xrRender_console.h"
#endif

Expand Down Expand Up @@ -54,7 +54,7 @@ IC void propagade_depth(LPVOID p_dest, LPVOID p_src, int dim)
//////////////////////////////////////////////////////////////////////

occRasterizer::occRasterizer()
#if DEBUG
#ifdef DEBUG
: dbg_HOM_draw_initialized(false)
#endif
{
Expand Down Expand Up @@ -140,7 +140,7 @@ void occRasterizer::propagade()

void occRasterizer::on_dbg_render()
{
#if DEBUG
#ifdef DEBUG
if (!ps_r2_ls_flags_ext.is(R_FLAGEXT_HOM_DEPTH_DRAW))
{
dbg_HOM_draw_initialized = false;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRender/occRasterizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class occRasterizer

void on_dbg_render();

#if DEBUG
#ifdef DEBUG
struct pixel_box
{
Fvector center;
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R1/FStaticRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ void CRender::Render()
g_pGamePersistent->Environment().RenderFlares(); // lens-flares
g_pGamePersistent->Environment().RenderLast(); // rain/thunder-bolts

#if DEBUG
#ifdef DEBUG
for (int _priority = 0; _priority < 2; ++_priority)
{
for (u32 iPass = 0; iPass < SHADER_PASSES_MAX; ++iPass)
Expand Down

0 comments on commit 7f68ed6

Please sign in to comment.