- route the BlurScene call in the menu through DFrameBuffer.
Game code should never ever call the renderer directly. This must be done through the video interface so that it can also work with other framebuffers later.
This commit is contained in:
parent
2962fe9f08
commit
1656bbf9ec
5 changed files with 9 additions and 5 deletions
|
|
@ -51,7 +51,6 @@
|
|||
#include "menu/menu.h"
|
||||
#include "vm.h"
|
||||
#include "events.h"
|
||||
#include "gl/renderer/gl_renderer.h" // for menu blur
|
||||
#include "scripting/types.h"
|
||||
|
||||
//
|
||||
|
|
@ -823,8 +822,7 @@ void M_Drawer (void)
|
|||
|
||||
if (CurrentMenu != nullptr && menuactive != MENU_Off)
|
||||
{
|
||||
if (GLRenderer)
|
||||
GLRenderer->BlurScene(gameinfo.bluramount);
|
||||
screen->BlurScene(gameinfo.bluramount);
|
||||
if (!CurrentMenu->DontDim)
|
||||
{
|
||||
M_Dim();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue