From 0b1df261d344ad53d82b8e86a17d619bc43eb3cb Mon Sep 17 00:00:00 2001 From: Jukka Jylänki Date: Wed, 22 Jan 2014 12:28:31 +0200 Subject: Add test for s3tc.c rendering when GL_FFP_ONLY flag is set. --- tests/s3tc.c | 2 +- tests/test_browser.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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') -- cgit v1.2.3-18-g5258