diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2014-01-22 12:28:31 +0200 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2014-01-22 12:32:20 +0200 |
commit | 0b1df261d344ad53d82b8e86a17d619bc43eb3cb (patch) | |
tree | c0f2a3252bf01df0440f0238ed286d81e408db23 /tests | |
parent | e797f2af396f79acb824aaac8ac7befa7528dfa3 (diff) |
Add test for s3tc.c rendering when GL_FFP_ONLY flag is set.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/s3tc.c | 2 | ||||
-rw-r--r-- | tests/test_browser.py | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/s3tc.c b/tests/s3tc.c index eb2ed3fc..5f7bee83 100644 --- a/tests/s3tc.c +++ b/tests/s3tc.c @@ -133,7 +133,7 @@ int main(int argc, char *argv[]) glDisableClientState(GL_TEXTURE_COORD_ARRAY); glDisableClientState(GL_VERTEX_ARRAY); - // Render the last item using oldschool glBegin etc + // Render the last item using oldschool glBegin etc glBegin( GL_TRIANGLE_STRIP ); glTexCoord2i( 0, 0 ); glVertex3f( 100, 300, 0 ); glTexCoord2i( 1, 0 ); glVertex3f( 300, 300, 0 ); diff --git a/tests/test_browser.py b/tests/test_browser.py index eed18a3d..9321f529 100644 --- a/tests/test_browser.py +++ b/tests/test_browser.py @@ -1599,6 +1599,10 @@ keydown(100);keyup(100); // trigger the end shutil.copyfile(path_from_root('tests', 'screenshot.dds'), os.path.join(self.get_dir(), 'screenshot.dds')) self.btest('s3tc.c', reference='s3tc.png', args=['--preload-file', 'screenshot.dds', '-s', 'LEGACY_GL_EMULATION=1']) + def test_s3tc_ffp_only(self): + shutil.copyfile(path_from_root('tests', 'screenshot.dds'), os.path.join(self.get_dir(), 'screenshot.dds')) + self.btest('s3tc.c', reference='s3tc.png', args=['--preload-file', 'screenshot.dds', '-s', 'LEGACY_GL_EMULATION=1', '-s', 'GL_FFP_ONLY=1']) + def test_s3tc_crunch(self): shutil.copyfile(path_from_root('tests', 'ship.dds'), 'ship.dds') shutil.copyfile(path_from_root('tests', 'bloom.dds'), 'bloom.dds') |