From 6050c6af1872894d86ea61a0eeb32b24f098ca44 Mon Sep 17 00:00:00 2001 From: rachytski Date: Thu, 15 Dec 2011 23:05:20 +0400 Subject: [android] fixed artifacts in alpha blending, switched off periodical updates to get rid of incorrect z-buffer bug. --- qt_tstfrm/macros.hpp | 2 +- qt_tstfrm/qt_tstfrm.pro | 2 ++ qt_tstfrm/tstwidgets.cpp | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'qt_tstfrm') diff --git a/qt_tstfrm/macros.hpp b/qt_tstfrm/macros.hpp index 7cede26627..8046cf7e7d 100644 --- a/qt_tstfrm/macros.hpp +++ b/qt_tstfrm/macros.hpp @@ -110,7 +110,7 @@ public: virtual void DoDraw(shared_ptr p) { p->beginFrame(); - p->clear(); + p->clear(yg::gl::Screen::s_bgColor); test.DoDraw(p); p->endFrame(); } diff --git a/qt_tstfrm/qt_tstfrm.pro b/qt_tstfrm/qt_tstfrm.pro index de6c164d09..172b935503 100644 --- a/qt_tstfrm/qt_tstfrm.pro +++ b/qt_tstfrm/qt_tstfrm.pro @@ -21,3 +21,5 @@ SOURCES += \ main_tester.cpp \ tstwidgets.cpp \ screen_qt.cpp \ + + diff --git a/qt_tstfrm/tstwidgets.cpp b/qt_tstfrm/tstwidgets.cpp index 3f7205c9d4..4512a8f9bd 100644 --- a/qt_tstfrm/tstwidgets.cpp +++ b/qt_tstfrm/tstwidgets.cpp @@ -62,8 +62,8 @@ void GLDrawWidget::initializeGL() 1, "smallStorage"); - rmp.m_blitStoragesParams = yg::ResourceManager::StoragePoolParams(10 * sizeof(yg::gl::AuxVertex), - sizeof(yg::gl::AuxVertex), + rmp.m_blitStoragesParams = yg::ResourceManager::StoragePoolParams(10 * sizeof(yg::gl::Vertex), + sizeof(yg::gl::Vertex), 10 * sizeof(unsigned short), sizeof(unsigned short), 30, @@ -72,8 +72,8 @@ void GLDrawWidget::initializeGL() 1, "blitStorage"); - rmp.m_multiBlitStoragesParams = yg::ResourceManager::StoragePoolParams(500 * sizeof(yg::gl::AuxVertex), - sizeof(yg::gl::AuxVertex), + rmp.m_multiBlitStoragesParams = yg::ResourceManager::StoragePoolParams(500 * sizeof(yg::gl::Vertex), + sizeof(yg::gl::Vertex), 500 * sizeof(unsigned short), sizeof(unsigned short), 10, -- cgit v1.2.3