mirror of https://github.com/mosra/magnum.git
Browse Source
It might happen that the user is calling ARB_DSA-only functions like CubeMapTexture::subImage() the texture was created using glGenTextures() and not using ARB_DSA, for example because the extension was disabled and then not bound or used at all, which makes the texture "not created yet". This is not needed for internal (...ImplementationDSA()) functions because these are always called only if the texture was also created using glCreateTextures(). Basically doing the same that's in AbstractTexture itself but for some reason was omitted here. The internal ...ImplementationDSA() functions might break in case the object is created externally using glGen*(), not bound or used at all and then the class is created using ::wrap(), but that's highly unprobable (why would anyone do that?).pull/107/head
2 changed files with 18 additions and 2 deletions
Loading…
Reference in new issue