Trac #11327
Fixes a bug where color conversion swapped blue and green values.
Fixes a bug where CONSTANT_COLOR/CONSTANT_ALPHA conflict guard
failed to check for ONE_MINUS variants.
Author: Shannon Woods
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@27 736b8ea6-26fd-11df-bfd4-992fa37f6226
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
TRAC #11410
Add Program::getSamplerType() and internal machinery to track the reported sampler uniforms.
Make State::samplerTexture into a 2D array with a dimension for sampler type.
Context::applyTextures queries the sampler type and asks for the right texture.
Author: Andrew Lewycky
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch
git-svn-id: https://angleproject.googlecode.com/svn/trunk@25 736b8ea6-26fd-11df-bfd4-992fa37f6226
TRAC #11339
* glCompressedTexImage2D and glCompressedTexSubImage2D verify
parameters and then fail with GL_INVALID_ENUM since there are no supported formats.
* glGetIntegerv recognises GL_NUM_COMPRESSED_TEXTURE_FORMATS
(returns 0) and GL_COMPRESSED_TEXTURE_FORMATS (returns none).
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Original-Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@19 736b8ea6-26fd-11df-bfd4-992fa37f6226
TRAC #11412
Indexed rendering was always broken because the size
calculated was offset incorrectly (part of a removed optimisation).
copyComponents was broken when I switched from
incremental addressing to explicitly-indexed addressing.
Signed-off-by: Daniel Koch
Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@17 736b8ea6-26fd-11df-bfd4-992fa37f6226
TRAC #11024
Signed-off-by: Nicolas Capens
Signed-off-by: Daniel Koch
Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@15 736b8ea6-26fd-11df-bfd4-992fa37f6226
TRAC #11316.
Keep a dirty data flag, recreate the texture when it is set.
Texture now owns getTexture() and calls a virtual
createTexture method when the derived classes need to recreate.
Signed-off-by: Daniel Koch
Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@12 736b8ea6-26fd-11df-bfd4-992fa37f6226
TRAC #11024
* Define NOMINMAX so that the Windows headers don't define min or max.
* Use std::min/std::max where we were using the min/max macros.
Signed-off-by: Daniel Koch
Author: Andrew Lewycky <andrew.lewycky@transgaming.com>
git-svn-id: https://angleproject.googlecode.com/svn/trunk@10 736b8ea6-26fd-11df-bfd4-992fa37f6226