summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty
diff options
context:
space:
mode:
author Romain TISSERAND <romain.tisserand@gmail.com>2023-10-04 14:08:53 +0200
committer GitHub <noreply@github.com>2023-10-04 23:08:53 +1100
commit52e5d735ce7f327948e58db0c5f7515ebcc0258e (patch)
tree0c59dcd781ef1dcc4d75da5a275242661fff80be /3rdparty
parent550632fd83e26581fd81a5cfb798a85202590c9a (diff)
3rdparty/bgfx: Fixed duplicate import of GL functions on Linux when using GLES 2.0. (#11596)
From bkaradzic/bgfx@66d50eb721334d6538a7eccdfdabb997667af1db Fixes build when using GLES 2.0 and Wayland.
Diffstat (limited to '3rdparty')
-rw-r--r--3rdparty/bgfx/src/glimports.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/3rdparty/bgfx/src/glimports.h b/3rdparty/bgfx/src/glimports.h
index 5a687bbf420..a462ff70861 100644
--- a/3rdparty/bgfx/src/glimports.h
+++ b/3rdparty/bgfx/src/glimports.h
@@ -584,6 +584,7 @@ GL_IMPORT_____x(true, PFNGLBLENDEQUATIONSEPARATEIPROC, glBlendEquati
GL_IMPORT_____x(true, PFNGLBLENDFUNCIPROC, glBlendFunci);
GL_IMPORT_____x(true, PFNGLBLENDFUNCSEPARATEIPROC, glBlendFuncSeparatei);
+#if !BGFX_USE_GL_DYNAMIC_LIB
GL_IMPORT______(true, PFNGLDRAWBUFFERPROC, glDrawBuffer);
GL_IMPORT______(true, PFNGLREADBUFFERPROC, glReadBuffer);
GL_IMPORT______(true, PFNGLGENSAMPLERSPROC, glGenSamplers);
@@ -592,6 +593,7 @@ GL_IMPORT______(true, PFNGLBINDSAMPLERPROC, glBindSampler
GL_IMPORT______(true, PFNGLSAMPLERPARAMETERFPROC, glSamplerParameterf);
GL_IMPORT______(true, PFNGLSAMPLERPARAMETERIPROC, glSamplerParameteri);
GL_IMPORT______(true, PFNGLSAMPLERPARAMETERFVPROC, glSamplerParameterfv);
+#endif // !BGFX_USE_GL_DYNAMIC_LIB
GL_IMPORT_____x(true, PFNGLBINDBUFFERBASEPROC, glBindBufferBase);
GL_IMPORT_____x(true, PFNGLBINDBUFFERRANGEPROC, glBindBufferRange);