@@ -108,22 +108,18 @@ class CBlender_Compile
108108 void StageSET_Color (u32 a1, u32 op, u32 a2);
109109 void StageSET_Color3 (u32 a1, u32 op, u32 a2, u32 a3);
110110 void StageSET_Alpha (u32 a1, u32 op, u32 a2);
111- #if !defined(USE_DX10) && !defined(USE_DX11)
112111 void StageSET_TMC (LPCSTR T, LPCSTR M, LPCSTR C, int UVW_channel);
113112 void Stage_Texture (LPCSTR name, u32 address = D3DTADDRESS_WRAP, u32 fmin = D3DTEXF_LINEAR,
114113 u32 fmip = D3DTEXF_LINEAR, u32 fmag = D3DTEXF_LINEAR);
115114 void StageTemplate_LMAP0 ();
116- #endif // USE_DX10
117115 void Stage_Matrix (LPCSTR name, int UVW_channel);
118116 void Stage_Constant (LPCSTR name);
119117 void StageEnd ();
120118
121119 // R1/R2-compiler [programmable]
122- #if defined(USE_DX9) || defined(USE_OGL)
123120 u32 i_Sampler (LPCSTR name);
124121 void i_Texture (u32 s, LPCSTR name);
125122 void i_Projective (u32 s, bool b);
126- #endif
127123 void i_Address (u32 s, u32 address);
128124 void i_Filter_Min (u32 s, u32 f);
129125 void i_Filter_Mip (u32 s, u32 f);
@@ -161,7 +157,8 @@ class CBlender_Compile
161157 return r_dx10Texture (ResourceName, texture.c_str ());
162158 };
163159 u32 r_dx10Sampler (LPCSTR ResourceName);
164- #else // USE_DX10
160+ #endif // USE_DX10
161+
165162 u32 r_Sampler (LPCSTR name, LPCSTR texture, bool b_ps1x_ProjectiveDivide = false , u32 address = D3DTADDRESS_WRAP,
166163 u32 fmin = D3DTEXF_LINEAR, u32 fmip = D3DTEXF_LINEAR, u32 fmag = D3DTEXF_LINEAR);
167164 u32 r_Sampler (LPCSTR name, shared_str texture, bool b_ps1x_ProjectiveDivide = false , u32 address = D3DTADDRESS_WRAP,
@@ -172,7 +169,6 @@ class CBlender_Compile
172169 void r_Sampler_rtf (LPCSTR name, LPCSTR texture, bool b_ps1x_ProjectiveDivide = false );
173170 void r_Sampler_clf (LPCSTR name, LPCSTR texture, bool b_ps1x_ProjectiveDivide = false );
174171 void r_Sampler_clw (LPCSTR name, LPCSTR texture, bool b_ps1x_ProjectiveDivide = false );
175- #endif // USE_DX10
176172
177173#ifdef USE_OGL
178174 void i_Comparison (u32 s, u32 func);
0 commit comments