gl: Add a private way to query mipmap status
authorMatthias Clasen <mclasen@redhat.com>
Thu, 23 Mar 2023 12:44:26 +0000 (08:44 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 24 Mar 2023 03:16:54 +0000 (23:16 -0400)
commit7cb7e0ab3537f95d4751b296beeff97c56cefea4
treec5b6558f23e72dd51eda22fa1f0eb3ac1373fdc9
parent4291f27b562f58b4d86b4f1816047614f71e6085
gl: Add a private way to query mipmap status

Make GdkGLTexture determine if the texture has
a mipmap, and provide private API to query this
information.

This check is done in gdkgltexture.c instead of
gskgldriver.c, since we're already binding the
texture here for other reasons, so it is easy
to query a few more things.
gdk/gdkgltexture.c
gdk/gdkgltextureprivate.h