forked from Mirrorlandia_minetest/minetest
GLES fixes (#11205)
* Consistently set float precision for GLES * Enable DPI scaling on Windows+GLES
This commit is contained in:
parent
623f0a8613
commit
0077982fb7
@ -335,6 +335,10 @@ static bool getWindowHandle(irr::video::IVideoDriver *driver, HWND &hWnd)
|
|||||||
case video::EDT_DIRECT3D9:
|
case video::EDT_DIRECT3D9:
|
||||||
hWnd = reinterpret_cast<HWND>(exposedData.D3D9.HWnd);
|
hWnd = reinterpret_cast<HWND>(exposedData.D3D9.HWnd);
|
||||||
break;
|
break;
|
||||||
|
#if ENABLE_GLES
|
||||||
|
case video::EDT_OGLES1:
|
||||||
|
case video::EDT_OGLES2:
|
||||||
|
#endif
|
||||||
case video::EDT_OPENGL:
|
case video::EDT_OPENGL:
|
||||||
hWnd = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd);
|
hWnd = reinterpret_cast<HWND>(exposedData.OpenGLWin32.HWnd);
|
||||||
break;
|
break;
|
||||||
|
@ -581,6 +581,8 @@ ShaderInfo ShaderSource::generateShader(const std::string &name,
|
|||||||
#version 100
|
#version 100
|
||||||
)";
|
)";
|
||||||
vertex_header = R"(
|
vertex_header = R"(
|
||||||
|
precision mediump float;
|
||||||
|
|
||||||
uniform highp mat4 mWorldView;
|
uniform highp mat4 mWorldView;
|
||||||
uniform highp mat4 mWorldViewProj;
|
uniform highp mat4 mWorldViewProj;
|
||||||
uniform mediump mat4 mTexture;
|
uniform mediump mat4 mTexture;
|
||||||
|
Loading…
Reference in New Issue
Block a user