Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PoroCYon
Bonzomatic
Commits
e1aa90ba
Commit
e1aa90ba
authored
Jul 15, 2016
by
Gargaj
Committed by
GitHub
Jul 15, 2016
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/platform_glfw/Renderer.cpp
View file @
e1aa90ba
#
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
.0
f
;
data
[
i
]
=
0
.0
f
;
glTexImage1D
(
GL_TEXTURE_1D
,
0
,
GL_R32F
,
w
,
0
,
GL_RED
,
GL_FLOAT
,
data
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment