Commit e1aa90ba authored by Gargaj's avatar Gargaj Committed by GitHub
Browse files

Initialize texture with 0, not 1

This has been scaring the shit out of me for ages and has to stop.
parent 7164f068
#ifdef _WIN32
#ifdef _WIN32
#include <windows.h>
#endif
......@@ -674,7 +674,7 @@ namespace Renderer
float * data = new float[w];
for ( int i = 0; i < w; ++i )
data[i] = 1.0f;
data[i] = 0.0f;
glTexImage1D( GL_TEXTURE_1D, 0, GL_R32F, w, 0, GL_RED, GL_FLOAT, data );
......
Supports Markdown
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