projects
/
profile
/
ivi
/
qtwayland.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Don't crash when sending touch events.
[profile/ivi/qtwayland.git]
/
examples
/
qwindow-compositor
/
qopenglwindow.cpp
1
#include "qopenglwindow.h"
2
3
QOpenGLWindow::QOpenGLWindow(const QSurfaceFormat &format, const QRect &geometry)
4
: m_format(format)
5
{
6
setSurfaceType(QWindow::OpenGLSurface);
7
setGeometry(geometry);
8
setFormat(format);
9
create();
10
m_context = new QOpenGLContext;
11
m_context->setFormat(format);
12
m_context->create();
13
}