diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-11-25 15:15:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-11-25 15:15:54 +0300 |
commit | 2198ecc98ecc5e94f2856795065d198557387ade (patch) | |
tree | 873858ffceb4b6e62f441597860224b9fa3a6207 /src/resources/openglimagehelper.cpp | |
parent | 75c5b3d32afdb34b824daafaa6d4300b9a8ec06b (diff) | |
download | manaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.gz manaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.bz2 manaplus-2198ecc98ecc5e94f2856795065d198557387ade.tar.xz manaplus-2198ecc98ecc5e94f2856795065d198557387ade.zip |
Add more profiler labels.
Diffstat (limited to 'src/resources/openglimagehelper.cpp')
-rw-r--r-- | src/resources/openglimagehelper.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/openglimagehelper.cpp b/src/resources/openglimagehelper.cpp index 295ad3e69..e4a1a56b8 100644 --- a/src/resources/openglimagehelper.cpp +++ b/src/resources/openglimagehelper.cpp @@ -231,6 +231,7 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, if (!tmpImage) return nullptr; + BLOCK_START("OpenGLImageHelper::glLoad") // Flush current error flag. graphicsManager.getLastError(); @@ -313,6 +314,7 @@ Image *OpenGLImageHelper::glLoad(SDL_Surface *tmpImage, // return nullptr; } + BLOCK_END("OpenGLImageHelper::glLoad") return new Image(texture, width, height, realWidth, realHeight); } |