GLDraw: DrawGL

git-svn-id: svn://ultimatepp.org/upp/trunk@12413 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-10-24 11:35:02 +00:00
parent e6b5d3129c
commit 834494ae5a
11 changed files with 64 additions and 78 deletions

View file

@ -21,6 +21,7 @@ void GLTextureDraw::Clear()
GLTexture GLTextureDraw::GetResult()
{
GL_TIMING("GLTextureDraw::GetResult");
ASSERT(texture);
GLTexture t;
if(msaa > 1) {
@ -70,6 +71,8 @@ GLTexture GLTextureDraw::GetResult()
void GLTextureDraw::Create(Size sz_, int msaa_)
{
GL_TIMING("GLTextureDraw::Create");
sz = sz_;
msaa = msaa_;