Fix linux build

This commit is contained in:
kd-11 2022-05-28 23:32:09 +03:00 committed by kd-11
parent a5d73f41b5
commit fcc6c2384b
2 changed files with 7 additions and 7 deletions

View file

@ -55,16 +55,16 @@ namespace gl
else\
gl##func##EXT(object_name, target, __VA_ARGS__);
#define DSA_CALL2(func, object_name, ...)\
#define DSA_CALL2(func, ...)\
if (::gl::get_driver_caps().ARB_dsa_supported)\
gl##func(object_name, __VA_ARGS__);\
gl##func(__VA_ARGS__);\
else\
gl##func##EXT(object_name, __VA_ARGS__);
gl##func##EXT(__VA_ARGS__);
#define DSA_CALL2_RET(func, object_name, ...)\
#define DSA_CALL2_RET(func, ...)\
(::gl::get_driver_caps().ARB_dsa_supported) ?\
gl##func(object_name, __VA_ARGS__) :\
gl##func##EXT(object_name, __VA_ARGS__)
gl##func(__VA_ARGS__) :\
gl##func##EXT(__VA_ARGS__)
#define DSA_CALL3(funcARB, funcDSA, ...)\
if (::gl::get_driver_caps().ARB_dsa_supported)\

View file

@ -792,7 +792,7 @@ namespace gl
else
{
// 2.1 Copy data to deswizzle buf
if (g_deswizzle_scratch_buffer.size() < image_linear_size)
if (g_deswizzle_scratch_buffer.size() < static_cast<GLsizeiptr>(image_linear_size))
{
g_deswizzle_scratch_buffer.remove();
g_deswizzle_scratch_buffer.create(gl::buffer::target::ssbo, image_linear_size, nullptr, gl::buffer::memory_type::local);