16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 01:59:19 +02:00

python windows improvements

This commit is contained in:
milek7
2019-03-18 20:11:59 +01:00
parent e7a58cc1ba
commit f4c53f2579
6 changed files with 80 additions and 49 deletions

View File

@@ -80,6 +80,8 @@ struct python_rt {
int height;
unsigned char *image = nullptr;
std::chrono::high_resolution_clock::time_point timestamp;
~python_rt() {
if (image)
delete[] image;
@@ -105,10 +107,6 @@ private:
PyObject *m_renderer {nullptr};
dictionary_source *m_input { nullptr };
std::shared_ptr<python_rt> m_target { nullptr };
unsigned char *m_image = nullptr;
int m_width, m_height;
GLenum m_components, m_format;
};
class python_taskqueue {