summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bunnei2020-02-20 21:07:17 -0500
committerGravatar bunnei2020-02-25 21:23:02 -0500
commit795893a9a5e45c0e2b6a620e324ae2f2a8458519 (patch)
treef372b2e67f63de3c54b2e81a732d4b0be9a7febe
parentfrontend: qt: bootmanager: Acquire a shared context in main emu thread. (diff)
downloadyuzu-795893a9a5e45c0e2b6a620e324ae2f2a8458519.tar.gz
yuzu-795893a9a5e45c0e2b6a620e324ae2f2a8458519.tar.xz
yuzu-795893a9a5e45c0e2b6a620e324ae2f2a8458519.zip
renderer_opengl: Create gl_framebuffer_data if empty.
-rw-r--r--src/video_core/renderer_opengl/renderer_opengl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_opengl/renderer_opengl.cpp b/src/video_core/renderer_opengl/renderer_opengl.cpp
index ee69caa3a..fa226c8ca 100644
--- a/src/video_core/renderer_opengl/renderer_opengl.cpp
+++ b/src/video_core/renderer_opengl/renderer_opengl.cpp
@@ -379,7 +379,8 @@ void RendererOpenGL::PrepareRendertarget(const Tegra::FramebufferConfig* framebu
379 // If framebuffer is provided, reload it from memory to a texture 379 // If framebuffer is provided, reload it from memory to a texture
380 if (screen_info.texture.width != static_cast<GLsizei>(framebuffer->width) || 380 if (screen_info.texture.width != static_cast<GLsizei>(framebuffer->width) ||
381 screen_info.texture.height != static_cast<GLsizei>(framebuffer->height) || 381 screen_info.texture.height != static_cast<GLsizei>(framebuffer->height) ||
382 screen_info.texture.pixel_format != framebuffer->pixel_format) { 382 screen_info.texture.pixel_format != framebuffer->pixel_format ||
383 gl_framebuffer_data.empty()) {
383 // Reallocate texture if the framebuffer size has changed. 384 // Reallocate texture if the framebuffer size has changed.
384 // This is expected to not happen very often and hence should not be a 385 // This is expected to not happen very often and hence should not be a
385 // performance problem. 386 // performance problem.