@@ -142,6 +142,5 @@ private:
PFNGLEGLIMAGETARGETTEXTURE2DOESPROC glEGLImageTargetTexture2DOES;
PFNEGLCREATEIMAGEKHRPROC eglCreateImageKHR;
PFNEGLDESTROYIMAGEKHRPROC eglDestroyImageKHR;
- PFNGLGETSTRINGPROC glGetString;
};
} //namespace libcamera
@@ -410,12 +410,6 @@ int eGL::initEGLContext()
goto fail;
}
- glGetString = (PFNGLGETSTRINGPROC)eglGetProcAddress("glGetString");
- if (!glGetString) {
- LOG(eGL, Error) << "glGetString not found";
- goto fail;
- }
-
if (eglChooseConfig(display_, configAttribs, &config, 1, &numConfigs) != EGL_TRUE) {
LOG(eGL, Error) << "eglChooseConfig fail";
goto fail;
`glGetString()` should be available in all version of OpenGL and OpenGL ES, so there should be no need to load it with `eglGetProcAddress()` like it is done for extension functions. Signed-off-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> --- include/libcamera/internal/egl.h | 1 - src/libcamera/egl.cpp | 6 ------ 2 files changed, 7 deletions(-)