X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvogltrace%2Fvogl_intercept.cpp;h=903752415bb03877349cb8a7d2430ff128e7b84c;hb=eecde759ff6e2f919318739526a7fa0d76133bdc;hp=51f01654f60d073be2ced3bb19a0fd6e22245170;hpb=d73de670dade59a783990e5ac264bb3cfd9d45d9;p=vogl diff --git a/src/vogltrace/vogl_intercept.cpp b/src/vogltrace/vogl_intercept.cpp index 51f0165..9037524 100644 --- a/src/vogltrace/vogl_intercept.cpp +++ b/src/vogltrace/vogl_intercept.cpp @@ -1243,6 +1243,8 @@ public: { return m_context_info.get_max_texture_coords(); } + + // compat only - will be 0 in core inline GLuint get_max_texture_units() const { return m_context_info.get_max_texture_units(); @@ -3078,6 +3080,12 @@ static inline bool vogl_func_is_nulled(gl_entrypoint_id_t id) #define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glMap2f_points(e, c, rt, r, nu, ne, a, p) vogl_determine_glMap2_size(target, ustride, uorder, vstride, vorder) #define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glMap2d_points(e, c, rt, r, nu, ne, a, p) vogl_determine_glMap2_size(target, ustride, uorder, vstride, vorder) +// KHR_debug +#define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glDebugMessageInsert_buf(e, c, rt, r, nu, ne, a, p) ((length < 0) ? (buf ? strlen((const char *)buf) : 0 ) : length) +#define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glPushDebugGroup_message(e, c, rt, r, nu, ne, a, p) ((length < 0) ? (message ? strlen((const char *)message) : 0 ) : length) +#define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glObjectLabel_label(e, c, rt, r, nu, ne, a, p) ((length < 0) ? (label ? strlen((const char *)label) : 0 ) : length) +#define DEF_FUNCTION_PARAM_COMPUTE_ARRAY_SIZE_FUNC_glObjectPtrLabel_label(e, c, rt, r, nu, ne, a, p) ((length < 0) ? (label ? strlen((const char *)label) : 0 ) : length) + //---------------------------------------------------------------------------------------------------------------------- // Texture/image API's array size helper macros // TODO: For glTexImage3DEXT, glTexSubImage1DEXT, etc. - should these check the currently bound GL_PIXEL_UNPACK_BUFFER?