Changeset View
Changeset View
Standalone View
Standalone View
libkwineffects/kwingltexture.cpp
Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Line(s) | |||||
462 | } | 462 | } | ||
463 | 463 | | |||
464 | void GLTexture::unbind() | 464 | void GLTexture::unbind() | ||
465 | { | 465 | { | ||
466 | Q_D(GLTexture); | 466 | Q_D(GLTexture); | ||
467 | glBindTexture(d->m_target, 0); | 467 | glBindTexture(d->m_target, 0); | ||
468 | } | 468 | } | ||
469 | 469 | | |||
470 | void GLTexture::render(QRegion region, const QRect& rect, bool hardwareClipping) | 470 | void GLTexture::render(const QRegion ®ion, const QRect& rect, bool hardwareClipping) | ||
471 | { | 471 | { | ||
472 | Q_D(GLTexture); | 472 | Q_D(GLTexture); | ||
473 | if (rect.isEmpty()) | 473 | if (rect.isEmpty()) | ||
474 | return; // nothing to paint and m_vbo is likely nullptr and d->m_cachedSize empty as well, #337090 | 474 | return; // nothing to paint and m_vbo is likely nullptr and d->m_cachedSize empty as well, #337090 | ||
475 | if (rect.size() != d->m_cachedSize) { | 475 | if (rect.size() != d->m_cachedSize) { | ||
476 | d->m_cachedSize = rect.size(); | 476 | d->m_cachedSize = rect.size(); | ||
477 | QRect r(rect); | 477 | QRect r(rect); | ||
478 | r.moveTo(0, 0); | 478 | r.moveTo(0, 0); | ||
▲ Show 20 Lines • Show All 201 Lines • Show Last 20 Lines |