mirror of
https://github.com/lubosz/overte.git
synced 2025-04-25 00:03:16 +02:00
fixing the mac crash
This commit is contained in:
parent
d7bf42c77a
commit
dff3a3bb34
1 changed files with 4 additions and 3 deletions
|
@ -70,8 +70,9 @@ GL41Texture::GL41Texture(const std::weak_ptr<GLBackend>& backend, const Texture&
|
|||
GLuint GL41Texture::allocate(const Texture& texture) {
|
||||
GLuint result;
|
||||
// FIXME technically GL 4.2, but OSX includes the ARB_texture_storage extension
|
||||
glCreateTextures(getGLTextureType(texture), 1, &result);
|
||||
//glGenTextures(1, &result);
|
||||
// glCreateTextures(getGLTextureType(texture), 1, &result);
|
||||
// glCreateTextures(getGLTextureType(texture), 1, &result);
|
||||
glGenTextures(1, &result);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -280,7 +281,7 @@ void GL41VariableAllocationTexture::promote() {
|
|||
|
||||
withPreservedTexture([&] {
|
||||
GLuint fbo { 0 };
|
||||
glCreateFramebuffers(1, &fbo);
|
||||
glGenFramebuffers(1, &fbo);
|
||||
glBindFramebuffer(GL_READ_FRAMEBUFFER, fbo);
|
||||
|
||||
uint16_t mips = _gpuObject.getNumMips();
|
||||
|
|
Loading…
Reference in a new issue