mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
sokol: update sokol_gfx.h
to match upstream @ d98c8b9 (fixes macOS compile error) (#19590)
This commit is contained in:
parent
25777bde4e
commit
bbb4a802e6
7
thirdparty/sokol/sokol_gfx.h
vendored
7
thirdparty/sokol/sokol_gfx.h
vendored
@ -10758,7 +10758,6 @@ _SOKOL_PRIVATE void _sg_mtl_init_caps(void) {
|
||||
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 120000) || (__IPHONE_OS_VERSION_MAX_ALLOWED >= 140000)
|
||||
if (@available(macOS 12.0, iOS 14.0, *)) {
|
||||
_sg.features.image_clamp_to_border = [_sg.mtl.device supportsFamily:MTLGPUFamilyApple7]
|
||||
|| [_sg.mtl.device supportsFamily:MTLGPUFamilyApple8]
|
||||
|| [_sg.mtl.device supportsFamily:MTLGPUFamilyMac2];
|
||||
#if (MAC_OS_X_VERSION_MAX_ALLOWED >= 130000) || (__IPHONE_OS_VERSION_MAX_ALLOWED >= 160000)
|
||||
if (!_sg.features.image_clamp_to_border) {
|
||||
@ -12054,10 +12053,10 @@ _SOKOL_PRIVATE WGPUBufferUsageFlags _sg_wgpu_buffer_usage(sg_buffer_type t, sg_u
|
||||
|
||||
_SOKOL_PRIVATE WGPULoadOp _sg_wgpu_load_op(sg_action a) {
|
||||
switch (a) {
|
||||
case SG_LOADACTION_CLEAR:
|
||||
case SG_LOADACTION_DONTCARE:
|
||||
case SG_ACTION_CLEAR:
|
||||
case SG_ACTION_DONTCARE:
|
||||
return WGPULoadOp_Clear;
|
||||
case SG_LOADACTION_LOAD:
|
||||
case SG_ACTION_LOAD:
|
||||
return WGPULoadOp_Load;
|
||||
default:
|
||||
SOKOL_UNREACHABLE;
|
||||
|
Loading…
x
Reference in New Issue
Block a user