From 3dec244d5b09271ac4edeb51fb6b97c51343c2f2 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 28 Feb 2018 08:00:40 +0000 Subject: [PATCH] Changed GL enum to fix Windows build issue --- src/osg/Texture2DArray.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/osg/Texture2DArray.cpp b/src/osg/Texture2DArray.cpp index 84a1cbd78..6ac7196ca 100644 --- a/src/osg/Texture2DArray.cpp +++ b/src/osg/Texture2DArray.cpp @@ -281,7 +281,7 @@ void Texture2DArray::apply(State& state) const // if subload is specified, then use it to subload the images to GPU memory if (_subloadCallback.valid()) { - applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT,state); + applyTexParameters(GL_TEXTURE_2D_ARRAY,state); _subloadCallback->subload(*this,state); } @@ -302,7 +302,7 @@ void Texture2DArray::apply(State& state) const if (applyParameters) { - applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT,state); + applyTexParameters(GL_TEXTURE_2D_ARRAY,state); applyParameters = false; } @@ -315,7 +315,7 @@ void Texture2DArray::apply(State& state) const // if texture parameters changed, then reset them if (getTextureParameterDirty(state.getContextID())) - applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT,state); + applyTexParameters(GL_TEXTURE_2D_ARRAY,state); } // there is no texture object, but exists a subload callback, so use it to upload images