Browse Source

Fix crashes under win32

Signed-off-by: falkTX <falktx@falktx.com>
pull/272/head
falkTX 4 years ago
parent
commit
5084916245
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
2 changed files with 4 additions and 2 deletions
  1. +3
    -1
      dgl/src/WindowPrivateData.cpp
  2. +1
    -1
      dgl/src/pugl-upstream

+ 3
- 1
dgl/src/WindowPrivateData.cpp View File

@@ -574,7 +574,9 @@ void Window::PrivateData::onPuglConfigure(const double width, const double heigh


const uint uwidth = static_cast<uint>(width + 0.5); const uint uwidth = static_cast<uint>(width + 0.5);
const uint uheight = static_cast<uint>(height + 0.5); const uint uheight = static_cast<uint>(height + 0.5);
self->onReshape(uwidth, uheight);

if (self != nullptr)
self->onReshape(uwidth, uheight);


#ifndef DPF_TEST_WINDOW_CPP #ifndef DPF_TEST_WINDOW_CPP
if (topLevelWidget != nullptr) if (topLevelWidget != nullptr)


+ 1
- 1
dgl/src/pugl-upstream

@@ -1 +1 @@
Subproject commit 5a4d2469a72ad072a0e2397477a2cd701c2ca309
Subproject commit c5a5eb4cdcb12dc8d74be4f5fbb335e8b3eac711

Loading…
Cancel
Save