Handle sampling from incomplete textures
TRAC #11321
Context owns incomplete textures of each texture type.
Also fix completeness determination: check minfilter to see if mipmapping is on.
Author: Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@26 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/libGLESv2/Texture.cpp b/libGLESv2/Texture.cpp
index 08ba113..f7dffcc 100644
--- a/libGLESv2/Texture.cpp
+++ b/libGLESv2/Texture.cpp
@@ -391,7 +391,7 @@
bool mipmapping;
- switch (mMagFilter)
+ switch (mMinFilter)
{
case GL_NEAREST:
case GL_LINEAR:
@@ -562,7 +562,7 @@
bool mipmapping;
- switch (mMagFilter)
+ switch (mMinFilter)
{
case GL_NEAREST:
case GL_LINEAR: