diff --git a/src/framework/graphics/texture.cpp b/src/framework/graphics/texture.cpp index a42cce2d..ea320903 100644 --- a/src/framework/graphics/texture.cpp +++ b/src/framework/graphics/texture.cpp @@ -271,9 +271,9 @@ void Texture::setupFilters() void Texture::setupTranformMatrix() { if(m_upsideDown) { - m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f, - 0.0f, -1.0f/m_glSize.height(), 0.0f, - 0.0f, 1.0f, 1.0f }; + m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f, + 0.0f, -1.0f/m_glSize.height(), 0.0f, + 0.0f, m_size.height()/(float)m_glSize.height(), 1.0f }; } else { m_transformMatrix = { 1.0f/m_glSize.width(), 0.0f, 0.0f, 0.0f, 1.0f/m_glSize.height(), 0.0f, diff --git a/src/framework/platform/win32window.cpp b/src/framework/platform/win32window.cpp index 487e0e5c..de2c9973 100644 --- a/src/framework/platform/win32window.cpp +++ b/src/framework/platform/win32window.cpp @@ -302,13 +302,13 @@ void WIN32Window::internalChooseGLVisual() 1, PFD_DRAW_TO_WINDOW | PFD_SUPPORT_OPENGL | PFD_DOUBLEBUFFER, PFD_TYPE_RGBA, - 32, // Select Our Color Depth - 0, 0, 0, 0, 0, 0, // Color Bits Ignored + 24, // Select Our Color Depth + 8, 0, 8, 0, 8, 0, // Color Bits Ignored 8, // Alpha Buffer Bits 0, // Shift Bit Ignored 0, // No Accumulation Buffer 0, 0, 0, 0, // Accumulation Bits Ignored - 16, // 16Bit Z-Buffer (Depth Buffer) + 0, // Z-Buffer (Depth Buffer) 0, // No Stencil Buffer 0, // No Auxiliary Buffer PFD_MAIN_PLANE, // Main Drawing Layer