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:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user