MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / BindTextureExtensions

Function BindTextureExtensions

src/video/opengl.cpp:257–266  ·  view source on GitHub ↗

Bind texture-related extension functions. */

Source from the content-addressed store, hash-verified

255
256/** Bind texture-related extension functions. */
257static bool BindTextureExtensions()
258{
259 if (IsOpenGLVersionAtLeast(1, 3)) {
260 if (!BindGLProc(_glActiveTexture, "glActiveTexture")) return false;
261 } else {
262 if (!BindGLProc(_glActiveTexture, "glActiveTextureARB")) return false;
263 }
264
265 return true;
266}
267
268/** Bind vertex buffer object extension functions. */
269static bool BindVBOExtension()

Callers 1

InitMethod · 0.85

Calls 2

IsOpenGLVersionAtLeastFunction · 0.85
BindGLProcFunction · 0.85

Tested by

no test coverage detected