|
From: Yoda-JM <yo...@us...> - 2010-04-06 18:23:34
|
Module: performous
Branch: master
Commit: a6abb22c35a3f9c4311d88e074bdf3696639a746
Author: Vincent Le Ligeour <yo...@us...>
Date: Tue Apr 6 20:23:12 2010 +0200
Fixed end of line typo
---
game/surface.cc | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/game/surface.cc b/game/surface.cc
index aea4965..dd23d7e 100644
--- a/game/surface.cc
+++ b/game/surface.cc
@@ -30,7 +30,7 @@ template <typename T> void loader(T& target, fs::path name) {
// Get file extension in lower case
std::string ext = name.extension();
std::for_each(ext.begin(), ext.end(), static_cast<int(*)(int)>(std::tolower));
-
+
if (ext == ".svg") loadSVG(target, filename);
else if (ext == ".png") loadPNG(target, filename);
else loadJPEG(target, filename);
@@ -83,7 +83,7 @@ void Texture::load(unsigned int width, unsigned int height, pix::Format format,
glPixelStorei(GL_UNPACK_SWAP_BYTES, f.swap);
// Load the data into texture
if ((isPow2(width) && isPow2(height)) || GLEW_ARB_texture_non_power_of_two) { // Can directly load the texture
- glTexImage2D(type(), 0, GL_RGBA, width, height, 0, f.format, f.type, buffer);
+ glTexImage2D(type(), 0, GL_RGBA, width, height, 0, f.format, f.type, buffer);
} else {
int newWidth = prevPow2(width);
int newHeight = prevPow2(height);
|