mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-13 10:18:40 +12:00
Fix linux build
This commit is contained in:
parent
a5d73f41b5
commit
fcc6c2384b
2 changed files with 7 additions and 7 deletions
|
@ -55,16 +55,16 @@ namespace gl
|
||||||
else\
|
else\
|
||||||
gl##func##EXT(object_name, target, __VA_ARGS__);
|
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)\
|
if (::gl::get_driver_caps().ARB_dsa_supported)\
|
||||||
gl##func(object_name, __VA_ARGS__);\
|
gl##func(__VA_ARGS__);\
|
||||||
else\
|
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::get_driver_caps().ARB_dsa_supported) ?\
|
||||||
gl##func(object_name, __VA_ARGS__) :\
|
gl##func(__VA_ARGS__) :\
|
||||||
gl##func##EXT(object_name, __VA_ARGS__)
|
gl##func##EXT(__VA_ARGS__)
|
||||||
|
|
||||||
#define DSA_CALL3(funcARB, funcDSA, ...)\
|
#define DSA_CALL3(funcARB, funcDSA, ...)\
|
||||||
if (::gl::get_driver_caps().ARB_dsa_supported)\
|
if (::gl::get_driver_caps().ARB_dsa_supported)\
|
||||||
|
|
|
@ -792,7 +792,7 @@ namespace gl
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// 2.1 Copy data to deswizzle buf
|
// 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.remove();
|
||||||
g_deswizzle_scratch_buffer.create(gl::buffer::target::ssbo, image_linear_size, nullptr, gl::buffer::memory_type::local);
|
g_deswizzle_scratch_buffer.create(gl::buffer::target::ssbo, image_linear_size, nullptr, gl::buffer::memory_type::local);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue