diff options
author | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-02-24 14:27:49 +0800 |
---|---|---|
committer | Sam Spilsbury <sam.spilsbury@canonical.com> | 2011-02-24 14:27:49 +0800 |
commit | 58877289e5b3cbf5083d7a84354af3339af505c2 (patch) | |
tree | fea23b63535446b6e379a1c5805b9c3873431d47 | |
parent | ce079b46a9a795a65530d5336779eda5a41a13b6 (diff) | |
download | mag-58877289e5b3cbf5083d7a84354af3339af505c2.tar.gz mag-58877289e5b3cbf5083d7a84354af3339af505c2.tar.bz2 |
Adapt for new core API
-rw-r--r-- | src/mag.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mag.cpp b/src/mag.cpp index 76eee7e..34bbda9 100644 --- a/src/mag.cpp +++ b/src/mag.cpp @@ -92,10 +92,11 @@ MagScreen::loadImages () { CompString overlay_s = optionGetOverlay (); CompString mask_s = optionGetMask (); + CompString pname ("mag"); if (!GL::multiTexCoord2f) return false; - overlay = GLTexture::readImageToTexture (overlay_s, + overlay = GLTexture::readImageToTexture (overlay_s, pname, overlaySize); if (!overlay.size ()) @@ -106,7 +107,7 @@ MagScreen::loadImages () return false; } - mask = GLTexture::readImageToTexture (mask_s, + mask = GLTexture::readImageToTexture (mask_s, pname, maskSize); if (!mask.size ()) |