Skip to content

Commit a5e6472

Browse files
committed
CBackend: Fix stackoverflow crash.
1 parent d2eb042 commit a5e6472

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Layers/xrRender/R_Backend.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ class ECORE_API CBackend
281281
IC void set_Shader (ref_shader& S, u32 pass=0) { set_Shader(&*S,pass); }
282282

283283
ICF void set_States (SState* _state);
284-
ICF void set_States (ref_state& _state) { set_States(_state); }
284+
ICF void set_States (ref_state& _state) { set_States(&*_state); }
285285

286286
#if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
287287
ICF void set_Format (SDeclaration* _decl);

0 commit comments

Comments
 (0)