Skip to content

Commit

Permalink
Merge branch 'master' into sgfx-wgpu
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Oct 22, 2023
2 parents 61c40b7 + 31f3dfc commit cf0df6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sokol_gfx.h
Original file line number Diff line number Diff line change
Expand Up @@ -4390,7 +4390,9 @@ inline int sg_append_buffer(sg_buffer buf_id, const sg_range& data) { return sg_
#ifndef GL_LUMINANCE
#define GL_LUMINANCE 0x1909
#endif
#ifndef _SG_GL_CHECK_ERROR
#define _SG_GL_CHECK_ERROR() { SOKOL_ASSERT(glGetError() == GL_NO_ERROR); }
#endif
#endif

// ███████ ████████ ██████ ██ ██ ██████ ████████ ███████
Expand Down Expand Up @@ -11293,7 +11295,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) {
Expand Down

0 comments on commit cf0df6b

Please sign in to comment.