Skip to content
Permalink
Browse files

Fixed direction of y adjustment for new orthographic projection in th…

…e metal renderer
  • Loading branch information
slouken committed Jan 2, 2018
1 parent fa86807 commit b3b5c4736644ae6b1ff935cf7283fe2a0a1ac6ff
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/render/metal/SDL_render_metal.m
@@ -825,7 +825,7 @@ - (void)dealloc
static inline float
adjusty(const float val)
{
return (val - 0.5f);
return (val + 0.5f);
}

// normalize a value from 0.0f to len into 0.0f to 1.0f.

0 comments on commit b3b5c47

Please sign in to comment.