|
@@ -143,7 +143,7 @@ nk_glfw3_render(enum nk_anti_aliasing AA, int max_vertex_buffer, int max_element
|
|
|
glBindTexture(GL_TEXTURE_2D, (GLuint)cmd->texture.id);
|
|
|
glScissor(
|
|
|
(GLint)(cmd->clip_rect.x * glfw.fb_scale.x),
|
|
|
- (GLint)((glfw.display_height - (GLint)(cmd->clip_rect.y + cmd->clip_rect.h)) * glfw.fb_scale.y),
|
|
|
+ (GLint)((glfw.height - (GLint)(cmd->clip_rect.y + cmd->clip_rect.h)) * glfw.fb_scale.y),
|
|
|
(GLint)(cmd->clip_rect.w * glfw.fb_scale.x),
|
|
|
(GLint)(cmd->clip_rect.h * glfw.fb_scale.y));
|
|
|
glDrawElements(GL_TRIANGLES, (GLsizei)cmd->elem_count, GL_UNSIGNED_SHORT, offset);
|