Skip to content

Commit 7f68ed6

Browse files
tamlin-mikeXottab-DUTY
authored andcommitted
Fix a few broken tests for DEBUG preprocessor macro (#if -> #ifdef).
1 parent 18066a6 commit 7f68ed6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Layers/xrRender/occRasterizer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#include "stdafx.h"
66
#include "occRasterizer.h"
77

8-
#if DEBUG
8+
#ifdef DEBUG
99
#include "xrRender_console.h"
1010
#endif
1111

@@ -54,7 +54,7 @@ IC void propagade_depth(LPVOID p_dest, LPVOID p_src, int dim)
5454
//////////////////////////////////////////////////////////////////////
5555

5656
occRasterizer::occRasterizer()
57-
#if DEBUG
57+
#ifdef DEBUG
5858
: dbg_HOM_draw_initialized(false)
5959
#endif
6060
{
@@ -140,7 +140,7 @@ void occRasterizer::propagade()
140140

141141
void occRasterizer::on_dbg_render()
142142
{
143-
#if DEBUG
143+
#ifdef DEBUG
144144
if (!ps_r2_ls_flags_ext.is(R_FLAGEXT_HOM_DEPTH_DRAW))
145145
{
146146
dbg_HOM_draw_initialized = false;

src/Layers/xrRender/occRasterizer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class occRasterizer
6363

6464
void on_dbg_render();
6565

66-
#if DEBUG
66+
#ifdef DEBUG
6767
struct pixel_box
6868
{
6969
Fvector center;

src/Layers/xrRenderPC_R1/FStaticRender.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ void CRender::Render()
674674
g_pGamePersistent->Environment().RenderFlares(); // lens-flares
675675
g_pGamePersistent->Environment().RenderLast(); // rain/thunder-bolts
676676

677-
#if DEBUG
677+
#ifdef DEBUG
678678
for (int _priority = 0; _priority < 2; ++_priority)
679679
{
680680
for (u32 iPass = 0; iPass < SHADER_PASSES_MAX; ++iPass)

0 commit comments

Comments
 (0)