Moves non-D3D-specific utility functions to the gl namespace.
TRAC #12043
Signed-off-by: Andrew Lewycky
Signed-off-by: Daniel Koch
Author: Shannon Woods
git-svn-id: https://angleproject.googlecode.com/svn/trunk@225 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libGLESv2/Texture.cpp b/src/libGLESv2/Texture.cpp
index 1d6662d..86a89dc 100644
--- a/src/libGLESv2/Texture.cpp
+++ b/src/libGLESv2/Texture.cpp
@@ -1371,7 +1371,7 @@
Colorbuffer *TextureCubeMap::getColorbuffer(GLenum target)
{
- if (!es2dx::IsCubemapTextureTarget(target))
+ if (!IsCubemapTextureTarget(target))
{
return error(GL_INVALID_OPERATION, (Colorbuffer *)NULL);
}
@@ -1388,7 +1388,7 @@
IDirect3DSurface9 *TextureCubeMap::getRenderTarget(GLenum target)
{
- ASSERT(es2dx::IsCubemapTextureTarget(target));
+ ASSERT(IsCubemapTextureTarget(target));
needRenderTarget();
@@ -1401,7 +1401,7 @@
Texture::TextureColorbufferProxy::TextureColorbufferProxy(Texture *texture, GLenum target)
: Colorbuffer(NULL), mTexture(texture), mTarget(target)
{
- ASSERT(target == GL_TEXTURE_2D || es2dx::IsCubemapTextureTarget(target));
+ ASSERT(target == GL_TEXTURE_2D || IsCubemapTextureTarget(target));
latchTextureInfo();
}