Skip to content

Commit

Permalink
Fixed direction of y adjustment for new orthographic projection in th…
Browse files Browse the repository at this point in the history
…e metal renderer
  • Loading branch information
slouken committed Jan 2, 2018
1 parent fa86807 commit b3b5c47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/render/metal/SDL_render_metal.m
Expand Up @@ -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.
Expand Down

0 comments on commit b3b5c47

Please sign in to comment.