Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
4c424d78
Kaydet (Commit)
4c424d78
authored
Ara 05, 2014
tarafından
Louis-Francis Ratté-Boulianne
Kaydeden (comit)
Markus Mohrhard
Ara 11, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
vcl: Keep the same context for VirtualDevice to avoid FBO switches
Change-Id: I66496fae902db9df5b8301b00bb779f42adaa7a7
üst
2e512773
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
gdiimpl.cxx
vcl/opengl/gdiimpl.cxx
+9
-10
No files found.
vcl/opengl/gdiimpl.cxx
Dosyayı görüntüle @
4c424d78
...
...
@@ -56,8 +56,8 @@ OpenGLSalGraphicsImpl::~OpenGLSalGraphicsImpl()
OpenGLContext
*
OpenGLSalGraphicsImpl
::
GetOpenGLContext
()
{
if
(
!
mpContext
)
AcquireContext
()
;
if
(
!
AcquireContext
()
)
return
NULL
;
return
mpContext
;
}
...
...
@@ -71,7 +71,11 @@ bool OpenGLSalGraphicsImpl::AcquireContext( )
ImplSVData
*
pSVData
=
ImplGetSVData
();
if
(
mpContext
)
{
if
(
mpContext
->
isInitialized
()
)
return
true
;
mpContext
->
DeRef
();
}
OpenGLContext
*
pContext
=
pSVData
->
maGDIData
.
mpLastContext
;
...
...
@@ -122,7 +126,7 @@ void OpenGLSalGraphicsImpl::Init()
void
OpenGLSalGraphicsImpl
::
PreDraw
()
{
if
(
!
mpContext
&&
!
AcquireContext
()
)
if
(
!
AcquireContext
()
)
{
SAL_WARN
(
"vcl.opengl"
,
"Couldn't acquire context"
);
return
;
...
...
@@ -161,11 +165,6 @@ void OpenGLSalGraphicsImpl::PostDraw()
mpFramebuffer
=
NULL
;
CHECK_GL_ERROR
();
// release the context as there is no guarantee the underlying window
// will still be valid for the next draw operation
if
(
mbOffscreen
)
ReleaseContext
();
}
void
OpenGLSalGraphicsImpl
::
freeResources
()
...
...
@@ -1414,7 +1413,7 @@ bool OpenGLSalGraphicsImpl::drawGradient(const tools::PolyPolygon& rPolyPoly,
void
OpenGLSalGraphicsImpl
::
beginPaint
()
{
if
(
!
mpContext
&&
!
AcquireContext
()
)
if
(
!
AcquireContext
()
)
return
;
mpContext
->
mnPainting
++
;
...
...
@@ -1422,7 +1421,7 @@ void OpenGLSalGraphicsImpl::beginPaint()
void
OpenGLSalGraphicsImpl
::
endPaint
()
{
if
(
!
mpContext
&&
!
AcquireContext
()
)
if
(
!
AcquireContext
()
)
return
;
mpContext
->
mnPainting
--
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment