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
7a7a8e1b
Kaydet (Commit)
7a7a8e1b
authored
Agu 16, 2014
tarafından
Markus Mohrhard
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add possibility to request a compatibility context
Change-Id: I0135e81f925fda19c06144d21d2f2b0efc9e57be
üst
a72a10a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
OpenGLContext.hxx
include/vcl/opengl/OpenGLContext.hxx
+3
-0
OpenGLContext.cxx
vcl/source/opengl/OpenGLContext.cxx
+10
-1
No files found.
include/vcl/opengl/OpenGLContext.hxx
Dosyayı görüntüle @
7a7a8e1b
...
@@ -149,6 +149,8 @@ public:
...
@@ -149,6 +149,8 @@ public:
OpenGLContext
();
OpenGLContext
();
~
OpenGLContext
();
~
OpenGLContext
();
void
requestLegacyContext
();
bool
init
(
Window
*
pParent
=
0
);
bool
init
(
Window
*
pParent
=
0
);
bool
init
(
SystemChildWindow
*
pChildWindow
);
bool
init
(
SystemChildWindow
*
pChildWindow
);
...
@@ -186,6 +188,7 @@ private:
...
@@ -186,6 +188,7 @@ private:
SystemChildWindow
*
m_pChildWindow
;
SystemChildWindow
*
m_pChildWindow
;
boost
::
scoped_ptr
<
SystemChildWindow
>
m_pChildWindowGC
;
boost
::
scoped_ptr
<
SystemChildWindow
>
m_pChildWindowGC
;
bool
mbInitialized
;
bool
mbInitialized
;
bool
mbRequestLegacyContext
;
};
};
#endif
#endif
...
...
vcl/source/opengl/OpenGLContext.cxx
Dosyayı görüntüle @
7a7a8e1b
...
@@ -29,7 +29,8 @@ GLWindow::~GLWindow()
...
@@ -29,7 +29,8 @@ GLWindow::~GLWindow()
OpenGLContext
::
OpenGLContext
()
:
OpenGLContext
::
OpenGLContext
()
:
mpWindow
(
NULL
),
mpWindow
(
NULL
),
m_pChildWindow
(
NULL
),
m_pChildWindow
(
NULL
),
mbInitialized
(
false
)
mbInitialized
(
false
),
mbRequestLegacyContext
(
false
)
{
{
}
}
...
@@ -60,6 +61,11 @@ OpenGLContext::~OpenGLContext()
...
@@ -60,6 +61,11 @@ OpenGLContext::~OpenGLContext()
#endif
#endif
}
}
void
OpenGLContext
::
requestLegacyContext
()
{
mbRequestLegacyContext
=
true
;
}
#if defined( _WIN32 )
#if defined( _WIN32 )
static
LRESULT
CALLBACK
WndProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
static
LRESULT
CALLBACK
WndProc
(
HWND
hwnd
,
UINT
message
,
WPARAM
wParam
,
LPARAM
lParam
)
{
{
...
@@ -491,6 +497,9 @@ bool OpenGLContext::ImplInit()
...
@@ -491,6 +497,9 @@ bool OpenGLContext::ImplInit()
(
CGLPixelFormatAttribute
)
0
(
CGLPixelFormatAttribute
)
0
};
};
if
(
mbRequestLegacyContext
)
pixelFormatAttributes
[
1
]
=
(
CGLPixelFormatAttribute
)
kCGLOGLPVersion_Legacy
;
CGLPixelFormatObj
pixelFormat
;
CGLPixelFormatObj
pixelFormat
;
GLint
numberOfPixels
;
GLint
numberOfPixels
;
CGLChoosePixelFormat
(
pixelFormatAttributes
,
&
pixelFormat
,
&
numberOfPixels
);
CGLChoosePixelFormat
(
pixelFormatAttributes
,
&
pixelFormat
,
&
numberOfPixels
);
...
...
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