mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2025-04-04 03:19:43 -04:00
Added delayed load for GLES dlls on Windows.
This commit is contained in:
parent
f440f160f9
commit
6f3a18a805
4 changed files with 15 additions and 7 deletions
|
@ -151,6 +151,8 @@ namespace entry
|
|||
|
||||
int32_t run(int _argc, char** _argv)
|
||||
{
|
||||
SetDllDirectory(".");
|
||||
|
||||
HINSTANCE instance = (HINSTANCE)GetModuleHandle(NULL);
|
||||
|
||||
WNDCLASSEX wnd;
|
||||
|
|
2
examples/runtime/.gitignore
vendored
Normal file
2
examples/runtime/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
libEGL.dll
|
||||
libGLESv2.dll
|
|
@ -60,6 +60,17 @@ function exampleProject(_name, _uuid)
|
|||
"example-common",
|
||||
}
|
||||
|
||||
configuration { "vs*" }
|
||||
links { -- this is needed only for testing with GLES2/3 on Windows with VS2008
|
||||
"DelayImp",
|
||||
}
|
||||
|
||||
configuration { "vs2010" }
|
||||
linkoptions { -- this is needed only for testing with GLES2/3 on Windows with VS201x
|
||||
"/DELAYLOAD:\"libEGL.dll\"",
|
||||
"/DELAYLOAD:\"libGLESv2.dll\"",
|
||||
}
|
||||
|
||||
configuration { "android*" }
|
||||
kind "SharedLib"
|
||||
targetextension ".so"
|
||||
|
|
|
@ -397,13 +397,6 @@ namespace bgfx
|
|||
, m_caps.VertexShaderVersion
|
||||
, m_caps.PixelShaderVersion
|
||||
);
|
||||
BGFX_FATAL(m_caps.MaxTextureWidth >= 2048 && m_caps.MaxTextureHeight >= 2048
|
||||
, Fatal::MinimumRequiredSpecs
|
||||
, "Maximum texture size is below 2048 (w: %d, h: %d)."
|
||||
, m_caps.MaxTextureWidth
|
||||
, m_caps.MaxTextureHeight
|
||||
);
|
||||
|
||||
BX_TRACE("Max vertex shader 3.0 instr. slots: %d", m_caps.MaxVertexShader30InstructionSlots);
|
||||
BX_TRACE("Max vertex shader constants: %d", m_caps.MaxVertexShaderConst);
|
||||
BX_TRACE("Max fragment shader 2.0 instr. slots: %d", m_caps.PS20Caps.NumInstructionSlots);
|
||||
|
|
Loading…
Add table
Reference in a new issue