Changed GL enum to fix Windows build issue
This commit is contained in:
parent
6a4609c28f
commit
3dec244d5b
@ -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 subload is specified, then use it to subload the images to GPU memory
|
||||||
if (_subloadCallback.valid())
|
if (_subloadCallback.valid())
|
||||||
{
|
{
|
||||||
applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT,state);
|
applyTexParameters(GL_TEXTURE_2D_ARRAY,state);
|
||||||
|
|
||||||
_subloadCallback->subload(*this,state);
|
_subloadCallback->subload(*this,state);
|
||||||
}
|
}
|
||||||
@ -302,7 +302,7 @@ void Texture2DArray::apply(State& state) const
|
|||||||
|
|
||||||
if (applyParameters)
|
if (applyParameters)
|
||||||
{
|
{
|
||||||
applyTexParameters(GL_TEXTURE_2D_ARRAY_EXT,state);
|
applyTexParameters(GL_TEXTURE_2D_ARRAY,state);
|
||||||
applyParameters = false;
|
applyParameters = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -315,7 +315,7 @@ void Texture2DArray::apply(State& state) const
|
|||||||
|
|
||||||
// if texture parameters changed, then reset them
|
// if texture parameters changed, then reset them
|
||||||
if (getTextureParameterDirty(state.getContextID()))
|
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
|
// there is no texture object, but exists a subload callback, so use it to upload images
|
||||||
|
Loading…
Reference in New Issue
Block a user