diff options
author | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-11 14:44:07 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2020-06-11 18:13:59 +0200 |
commit | de455222834e6b123a813fcad1064ff7d1991fc1 (patch) | |
tree | f93efa871a9be9ecd14ca746f4d70991371bc105 /examples/quick/tutorials | |
parent | 8603a0177ae1256a21fbeff2d9f0ca14f648449b (diff) |
openglunderqml example: remove unnecessary resetOpenGLState call
Also request the OpenGL RHI backend explicitly, like all the other
similar examples (d3d11underqml, and so on) do.
Calling resetOpenGLState() in this example is pointless because it
happens before returning from the custom rendering function, and the
endExternalCommands() call achieves the same internally, i.e. the rhi
will know that cached state cannot be used anymore. There are other
valid uses cases for resetOpenGLState() but this example does not have
those.
Change-Id: Ifa7861b80c29c174d02cfe37fe8ef8eed7344195
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'examples/quick/tutorials')
0 files changed, 0 insertions, 0 deletions