This commit is contained in:
Branimir Karadžić
2016-09-27 18:11:41 -07:00
parent aad08e0d29
commit 84e4a66c96
3 changed files with 8 additions and 4 deletions

View File

@@ -14,7 +14,7 @@
#include <string.h> // memcpy
#ifndef ENTRY_CONFIG_USE_NOOP
# define ENTRY_CONFIG_USE_NOOP (BX_PLATFORM_QNX)
# define ENTRY_CONFIG_USE_NOOP (BX_PLATFORM_QNX || BX_PLATFORM_PS4)
#endif // ENTRY_CONFIG_USE_NOOP
#ifndef ENTRY_CONFIG_USE_SDL

View File

@@ -718,7 +718,8 @@ namespace bgfx
}
else if (RendererType::OpenGLES == g_caps.rendererType
|| RendererType::OpenGL == g_caps.rendererType
|| RendererType::Vulkan == g_caps.rendererType)
|| RendererType::Vulkan == g_caps.rendererType
|| RendererType::GNM == g_caps.rendererType)
{
vsh = createShader(makeRef(vs_clear_glsl, sizeof(vs_clear_glsl) ) );
@@ -1754,6 +1755,7 @@ namespace bgfx
BGFX_RENDERER_CONTEXT(mtl);
BGFX_RENDERER_CONTEXT(gl);
BGFX_RENDERER_CONTEXT(vk);
BGFX_RENDERER_CONTEXT(gnm);
#undef BGFX_RENDERER_CONTEXT
@@ -2491,7 +2493,7 @@ namespace bgfx
s_callbackStub = BX_NEW(g_allocator, CallbackStub);
}
if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_NACL)
if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_NACL || BX_PLATFORM_PS4)
&& NULL == g_platformData.ndt
&& NULL == g_platformData.nwh
&& NULL == g_platformData.context

View File

@@ -77,7 +77,9 @@
# endif // BGFX_CONFIG_RENDERER_VULKAN
# ifndef BGFX_CONFIG_RENDERER_GNM
# define BGFX_CONFIG_RENDERER_GNM 0
# define BGFX_CONFIG_RENDERER_GNM (0 \
|| BX_PLATFORM_PS4 \
? 1 : 0)
# endif // BGFX_CONFIG_RENDERER_GNM
# ifndef BGFX_CONFIG_RENDERER_NOOP