Skip to content

Commit

Permalink
UPBGE: Fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
youle31 committed Jan 7, 2025
1 parent 88ad569 commit 192aa98
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
4 changes: 3 additions & 1 deletion source/blender/draw/engines/eevee_next/eevee_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ void ShadingView::render()
rt_buffer_opaque_,
rt_buffer_refract_);

inst_.pipelines.background.render(render_view_, combined_fb_);
if (DRW_state_draw_background()) { // UPBGE: for overlay pass
inst_.pipelines.background.render(render_view_, combined_fb_);
}

inst_.gbuffer.release();

Expand Down
4 changes: 2 additions & 2 deletions source/blender/python/generic/bgl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ PyObject *BPyInit_bgl();
/* This API is deprecated, currently these are only used in `bgl.cc`
* and there should be no reason to make use of them in the future.
* Use a define to indicate they are part of the public API which is being phased out. */
#ifdef USE_BGL_DEPRECATED_API
//#ifdef USE_BGL_DEPRECATED_API

/**
* Buffer Object
Expand Down Expand Up @@ -56,4 +56,4 @@ struct Buffer *BGL_MakeBuffer(int type,

int BGL_typeSize(int type);

#endif /* USE_BGL_DEPRECATED_API */
//#endif /* USE_BGL_DEPRECATED_API */
1 change: 0 additions & 1 deletion source/gameengine/Ketsji/KX_PythonInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
# include "DNA_ID.h"
# include "DNA_scene_types.h"
# include "MEM_guardedalloc.h"
# include "bgl.h"
# include "bl_math_py_api.hh"
# include "blf_py_api.hh"
# include "bmesh/bmesh_py_api.hh"
Expand Down
2 changes: 1 addition & 1 deletion source/gameengine/VideoTexture/ImageBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include <epoxy/gl.h>
#include "MEM_guardedalloc.h"
#include "bgl.h"
#include "bgl.hh"

#include "Exception.h"

Expand Down
2 changes: 1 addition & 1 deletion source/gameengine/VideoTexture/ImageBuff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "IMB_imbuf.hh"
#include "IMB_imbuf_types.hh"
#include "bgl.h"
#include "bgl.hh"

#include "Exception.h"
#include "FilterSource.h"
Expand Down

0 comments on commit 192aa98

Please sign in to comment.