Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: solvespace/solvespace
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c29624f4a16b
Choose a base ref
...
head repository: solvespace/solvespace
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 6017ecdaccda
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Mar 8, 2020

  1. Copy the full SHA
    6017ecd View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/render/rendergl3.cpp
4 changes: 2 additions & 2 deletions src/render/rendergl3.cpp
Original file line number Diff line number Diff line change
@@ -693,8 +693,8 @@ void OpenGl3Renderer::Clear() {
}

std::shared_ptr<Pixmap> OpenGl3Renderer::ReadFrame() {
int width = camera.width * camera.pixelRatio;
int height = camera.height * camera.pixelRatio;
int width = (int)(camera.width * camera.pixelRatio);
int height = (int)(camera.height * camera.pixelRatio);
std::shared_ptr<Pixmap> pixmap =
Pixmap::Create(Pixmap::Format::RGBA, (size_t)width, (size_t)height);
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixmap->data[0]);