Updated sfShader_bind and sfTexture_bind

This commit is contained in:
Laurent Gomila committed 2013-01-08 22:25:05 +01:00
1 parent de75c6a122
commit 44288a186c
4 files changed
+44 -23

No files matched your search

+1 -1
View File
@@ -220,7 +220,7 @@ void sfShader_setCurrentTextureParameter(sfShader* shader, const char* name)
////////////////////////////////////////////////////////////
void sfShader_bind(const sfShader* shader)
{
CSFML_CALL(shader, bind());
sf::Shader::bind(shader ? &shader->This : NULL);
}
+7 -7
View File
@@ -208,13 +208,6 @@ void sfTexture_updateFromRenderWindow(sfTexture* texture, const sfRenderWindow*
}
////////////////////////////////////////////////////////////
void sfTexture_bind(const sfTexture* texture)
{
CSFML_CALL_PTR(texture, bind());
}
////////////////////////////////////////////////////////////
void sfTexture_setSmooth(sfTexture* texture, sfBool smooth)
{
@@ -249,6 +242,13 @@ sfBool sfTexture_isRepeated(const sfTexture* texture)
}
////////////////////////////////////////////////////////////
void sfTexture_bind(const sfTexture* texture)
{
sf::Texture::bind(texture ? texture->This : NULL);
}
////////////////////////////////////////////////////////////
unsigned int sfTexture_getMaximumSize()
{