Two things: 1) Moving all calls to glTexImage2D() to a single function will make it ...
12 years, 11 months ago
(2011-12-09 16:30:23 UTC)
#1
Two things:
1) Moving all calls to glTexImage2D() to a single function will make it easier
to incorporate glTexStorage2D in a coming change. This is a replacement function
for glTexImage2D and there are some complications about when we can and can't
use it. With this change we'll only have to make the decision in one place.
2) We currently would return in uploadTexData on a GL error but we should
cleanup some glPixelStorei state before exiting the function.
Issue 5467053: use uploadTexData() to create init textures w/out data, and restore pixelstorei state on failure
(Closed)
Created 12 years, 11 months ago by bsalomon
Modified 12 years, 11 months ago
Reviewers: TomH
Base URL: http://skia.googlecode.com/svn/trunk/
Comments: 0