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

fix python binding

This commit is contained in:
milek7
2018-10-12 18:35:15 +02:00
parent 79bd74d58d
commit 4645b85483

View File

@@ -30,8 +30,13 @@ void render_task::run() {
// upload texture data
if( ( outputwidth != nullptr )
&& ( outputheight != nullptr ) ) {
const opengl_material &material = GfxRenderer.Material(m_target);
if (material.texture1 != null_handle)
{
GLuint id = GfxRenderer.Texture(material.texture1).id;
glBindTexture(GL_TEXTURE_2D, id);
}
GfxRenderer.Bind_Material( m_target );
// setup texture parameters
::glTexParameteri( GL_TEXTURE_2D, GL_GENERATE_MIPMAP, GL_TRUE );
::glTexParameteri( GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR );