Commit 81409bbc by John Bauman Committed by Nicolas Capens

Add swiftshader fix for floating point cubemaps.

Patch from Nicolas at Transgaming.
parent d4ae863d
...@@ -932,7 +932,7 @@ void TextureCubeMap::setImage(GLenum target, GLint level, GLsizei width, GLsizei ...@@ -932,7 +932,7 @@ void TextureCubeMap::setImage(GLenum target, GLint level, GLsizei width, GLsizei
image[face][level]->unbind(); image[face][level]->unbind();
} }
image[face][level] = new Image(this, width, height, format, GL_UNSIGNED_BYTE); image[face][level] = new Image(this, width, height, format, type);
if(!image[face][level]) if(!image[face][level])
{ {
...@@ -1094,4 +1094,4 @@ extern "C" ...@@ -1094,4 +1094,4 @@ extern "C"
return 0; return 0;
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment