浏览代码

Fix gamma test rendering using wrong unit

Camilla Berglund 9 年之前
父节点
当前提交
cb860e8150
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tests/gamma.c

+ 1 - 1
tests/gamma.c

@@ -121,7 +121,7 @@ int main(int argc, char** argv)
         struct nk_panel layout;
         struct nk_rect area;
 
-        glfwGetFramebufferSize(window, &width, &height);
+        glfwGetWindowSize(window, &width, &height);
         area = nk_rect(0.f, 0.f, (float) width, (float) height);
 
         glClear(GL_COLOR_BUFFER_BIT);