Bladeren bron

Merge branch 'master' of github.com:bkaradzic/bgfx

bkaradzic 12 jaren geleden
bovenliggende
commit
5356b7b560
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      src/glcontext_egl.cpp

+ 2 - 2
src/glcontext_egl.cpp

@@ -16,7 +16,7 @@ namespace bgfx
 #		include "glimports.h"
 #		include "glimports.h"
 #	undef GL_IMPORT
 #	undef GL_IMPORT
 
 
-	void GlContext::create(uint32_t /*_width*/, uint32_t /*_height*/)
+	void GlContext::create(uint32_t _width, uint32_t _height)
 	{
 	{
 		EGLNativeDisplayType ndt = EGL_DEFAULT_DISPLAY;
 		EGLNativeDisplayType ndt = EGL_DEFAULT_DISPLAY;
 		EGLNativeWindowType nwt = (EGLNativeWindowType)NULL;
 		EGLNativeWindowType nwt = (EGLNativeWindowType)NULL;
@@ -54,7 +54,7 @@ namespace bgfx
 #	if BX_PLATFORM_ANDROID
 #	if BX_PLATFORM_ANDROID
 		EGLint format;
 		EGLint format;
 		eglGetConfigAttrib(m_display, config, EGL_NATIVE_VISUAL_ID, &format);
 		eglGetConfigAttrib(m_display, config, EGL_NATIVE_VISUAL_ID, &format);
-		ANativeWindow_setBuffersGeometry(g_bgfxAndroidWindow, 0, 0, format);
+		ANativeWindow_setBuffersGeometry(g_bgfxAndroidWindow, _width, _height, format);
 		nwt = g_bgfxAndroidWindow;
 		nwt = g_bgfxAndroidWindow;
 #	endif // BX_PLATFORM_ANDROID
 #	endif // BX_PLATFORM_ANDROID