@@ -237,8 +237,10 @@ class ECORE_API CBackend
237237#if defined(USE_DX10) || defined(USE_DX11)
238238 IC void get_ConstantDirect (shared_str& n, u32 DataSize, void ** pVData, void ** pGData, void ** pPData);
239239#else // USE_DX10
240+ #ifndef USE_OGL
240241 IC R_constant_array& get_ConstantCache_Vertex () { return constants.a_vertex ; }
241242 IC R_constant_array& get_ConstantCache_Pixel () { return constants.a_pixel ; }
243+ #endif // USE_OGL
242244#endif // USE_DX10
243245
244246 // API
@@ -364,7 +366,7 @@ class ECORE_API CBackend
364366 ICF void set_ca (R_constant* C, u32 e, const Fmatrix& A) { if (C) constants.seta (C,e,A); }
365367 ICF void set_ca (R_constant* C, u32 e, const Fvector4& A) { if (C) constants.seta (C,e,A); }
366368 ICF void set_ca (R_constant* C, u32 e, float x, float y, float z, float w) { if (C) constants.seta (C,e,x,y,z,w); }
367- #if defined(USE_DX10) || defined(USE_DX11)
369+ #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
368370 ICF void set_c (R_constant* C, float A) { if (C) constants.set (C,A); }
369371 ICF void set_c (R_constant* C, int A) { if (C) constants.set (C,A); }
370372#endif // USE_DX10
@@ -377,7 +379,7 @@ class ECORE_API CBackend
377379 ICF void set_ca (LPCSTR n, u32 e, const Fmatrix& A) { if (ctable) set_ca (&*ctable->get (n),e,A); }
378380 ICF void set_ca (LPCSTR n, u32 e, const Fvector4& A) { if (ctable) set_ca (&*ctable->get (n),e,A); }
379381 ICF void set_ca (LPCSTR n, u32 e, float x, float y, float z, float w) { if (ctable) set_ca (&*ctable->get (n),e,x,y,z,w);}
380- #if defined(USE_DX10) || defined(USE_DX11)
382+ #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
381383 ICF void set_c (LPCSTR n, float A) { if (ctable) set_c (&*ctable->get (n),A); }
382384 ICF void set_c (LPCSTR n, int A) { if (ctable) set_c (&*ctable->get (n),A); }
383385#endif // USE_DX10
@@ -389,7 +391,7 @@ class ECORE_API CBackend
389391 ICF void set_ca (shared_str& n, u32 e, const Fmatrix& A) { if (ctable) set_ca (&*ctable->get (n),e,A); }
390392 ICF void set_ca (shared_str& n, u32 e, const Fvector4& A) { if (ctable) set_ca (&*ctable->get (n),e,A); }
391393 ICF void set_ca (shared_str& n, u32 e, float x, float y, float z, float w) { if (ctable) set_ca (&*ctable->get (n),e,x,y,z,w);}
392- #if defined(USE_DX10) || defined(USE_DX11)
394+ #if defined(USE_DX10) || defined(USE_DX11) || defined(USE_OGL)
393395 ICF void set_c (shared_str& n, float A) { if (ctable) set_c (&*ctable->get (n),A); }
394396 ICF void set_c (shared_str& n, int A) { if (ctable) set_c (&*ctable->get (n),A); }
395397#endif // USE_DX10
0 commit comments