Explorar el Código

Merge pull request #524 from Nodrev/bugfix-createTexture-backbuffer-ratio

Textures created with BackbufferRatio::enum are not sized correctly
Branimir Karadžić hace 10 años
padre
commit
d885f32a50
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/bgfx.cpp

+ 2 - 2
src/bgfx.cpp

@@ -2674,8 +2674,8 @@ again:
 
 		if (BackbufferRatio::Count != _ratio)
 		{
-			_width  = uint16_t(s_ctx->m_frame->m_resolution.m_width);
-			_height = uint16_t(s_ctx->m_frame->m_resolution.m_height);
+			_width  = uint16_t(s_ctx->m_resolution.m_width);
+			_height = uint16_t(s_ctx->m_resolution.m_height);
 			getTextureSizeFromRatio(_ratio, _width, _height);
 		}