| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c29624f commit 6017ecd
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -693,8 +693,8 @@ void OpenGl3Renderer::Clear() { | |||
| 693 | 693 | } | |
| 694 | 694 | ||
| 695 | 695 | std::shared_ptr<Pixmap> OpenGl3Renderer::ReadFrame() { | |
| 696 | - int width = camera.width * camera.pixelRatio; | ||
| 697 | - int height = camera.height * camera.pixelRatio; | ||
| 696 | + int width = (int)(camera.width * camera.pixelRatio); | ||
| 697 | + int height = (int)(camera.height * camera.pixelRatio); | ||
| 698 | 698 | std::shared_ptr<Pixmap> pixmap = | |
| 699 | 699 | Pixmap::Create(Pixmap::Format::RGBA, (size_t)width, (size_t)height); | |
| 700 | 700 | glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, &pixmap->data[0]); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments