Skip to content

Commit 73c010b

Browse files
IDeviceContextGL: renamed PurgeCurrentContextCaches to PurgeCurrentGLContextCaches for consistency
1 parent 63559e4 commit 73c010b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ class DeviceContextGLImpl final : public DeviceContextBase<EngineGLImplTraits>
295295
/// Implementation of IDeviceContextGL::UpdateCurrentGLContext().
296296
virtual bool DILIGENT_CALL_TYPE UpdateCurrentGLContext() override final;
297297

298-
/// Implementation of IDeviceContextGL::PurgeCurrentContextCaches().
299-
virtual void DILIGENT_CALL_TYPE PurgeCurrentContextCaches() override final;
298+
/// Implementation of IDeviceContextGL::PurgeCurrentGLContextCaches().
299+
virtual void DILIGENT_CALL_TYPE PurgeCurrentGLContextCaches() override final;
300300

301301
GLContextState& GetContextState() { return m_ContextState; }
302302

Graphics/GraphicsEngineOpenGL/interface/DeviceContextGL.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ DILIGENT_BEGIN_INTERFACE(IDeviceContextGL, IDeviceContext)
6161
/// \return false if there is no active GL context, and true otherwise.
6262
VIRTUAL Bool METHOD(UpdateCurrentGLContext)(THIS) PURE;
6363

64-
/// Purge current context caches (e.g. VAO, FBO).
64+
/// Purges current OpenGL context caches (e.g. VAO, FBO).
6565

6666
/// If an application uses multiple GL contexts, this method must be called
6767
/// before the current context is about to be released,
6868
/// to let the engine cleanup internal OpenGL object caches.
69-
VIRTUAL void METHOD(PurgeCurrentContextCaches)(THIS) PURE;
69+
VIRTUAL void METHOD(PurgeCurrentGLContextCaches)(THIS) PURE;
7070

7171
/// Sets the swap in the device context. The swap chain is used by the device context
7272
/// to obtain the default FBO handle.
@@ -81,9 +81,9 @@ DILIGENT_END_INTERFACE
8181

8282
// clang-format off
8383

84-
# define IDeviceContextGL_UpdateCurrentGLContext(This) CALL_IFACE_METHOD(DeviceContextGL, UpdateCurrentGLContext, This)
85-
# define IDeviceContextGL_PurgeCurrentContextCaches(This) CALL_IFACE_METHOD(DeviceContextGL, PurgeCurrentContextCaches, This)
86-
# define IDeviceContextGL_SetSwapChain(This, ...) CALL_IFACE_METHOD(DeviceContextGL, SetSwapChain, This, __VA_ARGS__)
84+
# define IDeviceContextGL_UpdateCurrentGLContext(This) CALL_IFACE_METHOD(DeviceContextGL, UpdateCurrentGLContext, This)
85+
# define IDeviceContextGL_PurgeCurrentGLContextCaches(This) CALL_IFACE_METHOD(DeviceContextGL, PurgeCurrentGLContextCaches, This)
86+
# define IDeviceContextGL_SetSwapChain(This, ...) CALL_IFACE_METHOD(DeviceContextGL, SetSwapChain, This, __VA_ARGS__)
8787

8888
// clang-format on
8989

Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,7 @@ bool DeviceContextGLImpl::UpdateCurrentGLContext()
16631663
return true;
16641664
}
16651665

1666-
void DeviceContextGLImpl::PurgeCurrentContextCaches()
1666+
void DeviceContextGLImpl::PurgeCurrentGLContextCaches()
16671667
{
16681668
auto NativeGLContext = m_pDevice->m_GLContext.GetCurrentNativeGLContext();
16691669
if (NativeGLContext != NULL)

Tests/IncludeTest/GraphicsEngineOpenGL/DeviceContextGLH_test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ void TestDeviceContextGL_CInterface(IDeviceContextGL* pCtxGL)
3131
{
3232
bool res = IDeviceContextGL_UpdateCurrentGLContext(pCtxGL);
3333
(void)res;
34-
IDeviceContextGL_PurgeCurrentContextCaches(pCtxGL);
34+
IDeviceContextGL_PurgeCurrentGLContextCaches(pCtxGL);
3535
IDeviceContextGL_SetSwapChain(pCtxGL, (struct ISwapChainGL*)NULL);
3636
}

0 commit comments

Comments
 (0)