diff options
author | 2010-09-22 16:10:57 -0700 | |
---|---|---|
committer | 2010-09-22 16:44:49 -0700 | |
commit | 29d8997bd43b7c4ad37fc3d6f91eaafa74913c88 (patch) | |
tree | 2bc22f92798fdb17ac519d22ca3a3f7b84d328f8 /libs/hwui/TextureCache.cpp | |
parent | 8c749f87d29e1a363ddf9027c3a51753c612d510 (diff) |
Fix OpenGL errors in various places.
Change-Id: I3a4e115d8fb13b6c443e65460d92987b16f2524c
Diffstat (limited to 'libs/hwui/TextureCache.cpp')
-rw-r--r-- | libs/hwui/TextureCache.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/hwui/TextureCache.cpp b/libs/hwui/TextureCache.cpp index ca455d8c7fc6..adf6ee2757b0 100644 --- a/libs/hwui/TextureCache.cpp +++ b/libs/hwui/TextureCache.cpp @@ -159,8 +159,8 @@ void TextureCache::generateTexture(SkBitmap* bitmap, Texture* texture, bool rege return; } - const bool resize = !regenerate || bitmap->width() != texture->width || - bitmap->height() != texture->height; + const bool resize = !regenerate || bitmap->width() != int(texture->width) || + bitmap->height() != int(texture->height); if (!regenerate) { glGenTextures(1, &texture->id); |