aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/ogl.cpp2
-rw-r--r--src/ui.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ogl.cpp b/src/ogl.cpp
index 19e49cc..7d160e2 100644
--- a/src/ogl.cpp
+++ b/src/ogl.cpp
@@ -11,7 +11,7 @@ OglImage::OglImage() {
// Setup filtering parameters for display
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);
- glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);
}
OglImage::~OglImage() {
diff --git a/src/ui.cpp b/src/ui.cpp
index 43ecb09..fdb9eee 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -15,7 +15,7 @@ void ShowEverything() {
gl.upload(reinterpret_cast<const char*>(sandbox._bitmap.data()), kWidth, kHeight);
constexpr float kScale = 4.0f;
constexpr ImVec2 kSize(kWidth * kScale, kHeight * kScale);
- ImGui::Image(gl.as_imgui(), kSize);
+ ImGui::Image(gl.as_imgui(), kSize, ImVec2(0, 1), ImVec2(1, 0));
ImGui::End();
ImGui::ShowDemoWindow();