Skip to content

Commit 88b98a2

Browse files
committed
.
1 parent 8b65188 commit 88b98a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Apps/UnitTests/Source/App_macOS.mm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ int main()
3434

3535
// Create a simple test texture descriptor to check format support
3636
auto checkTextureFormat = [device](MTLPixelFormat format, const char* name) {
37-
MTLTextureDescriptor* desc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format
37+
@try {
38+
MTLTextureDescriptor* desc = [MTLTextureDescriptor texture2DDescriptorWithPixelFormat:format
3839
width:64
3940
height:64
4041
mipmapped:NO];
41-
@try {
4242
id<MTLTexture> testTexture = [device newTextureWithDescriptor:desc];
4343
NSLog(@" %s: %@", name, testTexture != nil ? @"YES" : @"NO");
4444
}

0 commit comments

Comments
 (0)