Skip to content

Commit 5b2703a

Browse files
committed
formatting
1 parent ec616fb commit 5b2703a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

src/libprojectM/Renderer/PlatformGLResolver.hpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ using UserResolver = void* (*)(const char* name, void* userData);
9595
* - If multiple backends appear to be current, EGL is preferred.
9696
*
9797
* Resolution order (non-Emscripten):
98-
* 1) User resolver callback (if provided)
98+
* 1) User resolver callback (if provided, resolution continues if user provider returns a nullptr)
9999
* 2) Backend provider:
100100
* - EGL: eglGetProcAddress
101101
* - Queried for all symbols only when EGL_KHR_get_all_proc_addresses or
@@ -157,7 +157,7 @@ using UserResolver = void* (*)(const char* name, void* userData);
157157
* +-- gladLoadGL(...) / gladLoadGLES2(...) (GLAD calls back into GLResolver::GetProcAddress)
158158
* |
159159
* +-- CheckGLRequirements()
160-
* | Desktop GL: OpenGL >= 3.3
160+
* | Desktop GL: OpenGL >= 3.3
161161
* | GLES: OpenGL ES >= 3.0
162162
* |
163163
* +-- if ready:
@@ -168,7 +168,7 @@ using UserResolver = void* (*)(const char* name, void* userData);
168168
*
169169
* GLResolver::GetProcAddress(name)
170170
* |
171-
* +-- Validates the currently-bound context matches the detected backend.
171+
* +-- Validate if the currently-bound context matches the detected backend.
172172
* |
173173
* +-- User resolver (if any)
174174
* |
@@ -178,7 +178,7 @@ using UserResolver = void* (*)(const char* name, void* userData);
178178
* | WGL -> wglGetProcAddress (filters sentinels; may prefer exported symbols)
179179
* | WebGL-> emscripten_webgl*_get_proc_address (Emscripten only)
180180
* |
181-
* +-- If Emscripten -> All available lookups have been tried, return nullptr.
181+
* +-- If Emscripten -> All available lookups have been tried -> Not Found (nullptr)
182182
* |
183183
* +-- DynamicLibrary::FindGlobalSymbol(name)
184184
* |
@@ -187,10 +187,11 @@ using UserResolver = void* (*)(const char* name, void* userData);
187187
* | m_glLib.GetSymbol(name)
188188
* | m_glxLib.GetSymbol(name)
189189
* |
190-
* +-- Late best-effort eglGetProcAddress() fallback (EGL only).
190+
* +-- Late best-effort eglGetProcAddress fallback (EGL only)
191+
* | glXGetProcAddress fallback (GLX only, disabled per default)
191192
* |
192-
* \/
193-
* nullptr
193+
* \/
194+
* Not Found (nullptr)
194195
*/
195196
class GLResolver
196197
{

0 commit comments

Comments
 (0)