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