Ticket #7238: 7238-v1.patch
File 7238-v1.patch, 2.2 KB (added by , 14 years ago) |
---|
-
libs/libmythui/mythpainter_vdpau.cpp
379 379 curOutput, 380 380 &dummy 381 381 ); 382 CHECK_ST 382 CHECK_ST; 383 383 384 if (m_surfaceDeleteList.size()) 384 QMutexLocker locker(&m_surfaceDeleteLock); 385 while (!m_surfaceDeleteList.empty()) 385 386 { 386 m_surfaceDeleteLock.lock(); 387 while (m_surfaceDeleteList.size()) 388 { 389 VdpBitmapSurface bitmap = m_surfaceDeleteList.front(); 390 m_surfaceDeleteList.pop_front(); 391 392 vdp_bitmap_surface_destroy(bitmap); 393 } 394 m_surfaceDeleteLock.unlock(); 387 VdpBitmapSurface bitmap = m_surfaceDeleteList.front(); 388 m_surfaceDeleteList.pop_front(); 389 vdp_bitmap_surface_destroy(bitmap); 395 390 } 396 391 } 397 392 -
libs/libmythui/mythpainter_ogl.cpp
5 5 // Config header generated in base directory by configure 6 6 #include "config.h" 7 7 8 // C /C++headers9 #include < math.h>8 // C headers 9 #include <cmath> 10 10 11 // C++ headers 12 #include <vector> 13 using namespace std; 14 11 15 // QT headers 12 16 #include <QApplication> 13 17 #include <QPixmap> … … 93 97 return; 94 98 } 95 99 96 if (m_textureDeleteList.size())100 vector<GLuint> textures; 97 101 { 98 GLuint textures[1]; 99 100 m_textureDeleteLock.lock(); 101 while (m_textureDeleteList.size()) 102 QMutexLocker locker(&m_textureDeleteLock); 103 while (!m_textureDeleteList.empty()) 102 104 { 103 textures [0] = m_textureDeleteList.front();105 textures.push_back(m_textureDeleteList.front()); 104 106 m_textureDeleteList.pop_front(); 105 106 glDeleteTextures(1, textures);107 107 } 108 m_textureDeleteLock.unlock();109 108 } 109 glDeleteTextures(textures.size(), &textures[0]); 110 110 111 112 111 realParent->makeCurrent(); 113 112 glClearColor(0.0, 0.0, 0.0, 0.0); 114 113 glClear(GL_COLOR_BUFFER_BIT);