Skip to content

Commit 52f3dfb

Browse files
committed
(Metal) Warning fixes
1 parent a61204b commit 52f3dfb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

gfx/drivers/metal.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ - (instancetype)initWithDriver:(MetalDriver *)driver fontPath:(const char *)font
257257
}
258258
else
259259
{
260-
int i;
260+
size_t i;
261261
_buffer = [_context.device newBufferWithLength:(NSUInteger)(_stride * _atlas->height)
262262
options:PLATFORM_METAL_RESOURCE_STORAGE_MODE];
263263
void *dst = _buffer.contents;
@@ -1858,12 +1858,12 @@ - (BOOL)setShaderFromPath:(NSString *)path
18581858

18591859
@try
18601860
{
1861-
int i;
1861+
size_t i;
18621862
texture_t *source = NULL;
18631863
if (!video_shader_load_preset_into_shader(path.UTF8String, shader))
18641864
return NO;
18651865

1866-
source = &_engine.frame.texture[0];
1866+
source = &_engine.frame.texture[0];
18671867

18681868
for (i = 0; i < shader->passes; source = &_engine.pass[i++].rt)
18691869
{

0 commit comments

Comments
 (0)