Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
0c598a27
Commit
0c598a27
authored
3 years ago
by
Rye Mutt
Browse files
Options
Downloads
Patches
Plain Diff
Small cleanup to failed shader unloading
parent
7297e0cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/llrender/llglslshader.cpp
+3
-7
3 additions, 7 deletions
indra/llrender/llglslshader.cpp
indra/llrender/llglslshader.h
+1
-2
1 addition, 2 deletions
indra/llrender/llglslshader.h
with
4 additions
and
9 deletions
indra/llrender/llglslshader.cpp
+
3
−
7
View file @
0c598a27
...
...
@@ -436,6 +436,7 @@ BOOL LLGLSLShader::createShader(std::vector<LLStaticHashedString> * attributes,
// Attach existing objects
if
(
!
LLShaderMgr
::
instance
()
->
attachShaderFeatures
(
this
))
{
unloadInternal
();
return
FALSE
;
}
...
...
@@ -456,6 +457,8 @@ BOOL LLGLSLShader::createShader(std::vector<LLStaticHashedString> * attributes,
}
if
(
!
success
)
{
unloadInternal
();
LL_SHADER_LOADING_WARNS
()
<<
"Failed to link shader: "
<<
mName
<<
LL_ENDL
;
// Try again using a lower shader level;
...
...
@@ -1511,13 +1514,6 @@ void LLGLSLShader::vertexAttrib4f(U32 index, GLfloat x, GLfloat y, GLfloat z, GL
}
}
void
LLGLSLShader
::
vertexAttrib4fv
(
U32
index
,
GLfloat
*
v
)
{
if
(
mAttribute
[
index
]
>
0
)
{
glVertexAttrib4fv
(
mAttribute
[
index
],
v
);
}
}
void
LLGLSLShader
::
setMinimumAlpha
(
F32
minimum
)
{
...
...
This diff is collapsed.
Click to expand it.
indra/llrender/llglslshader.h
+
1
−
2
View file @
0c598a27
...
...
@@ -146,7 +146,6 @@ class LLGLSLShader
void
setMinimumAlpha
(
F32
minimum
);
void
vertexAttrib4f
(
U32
index
,
GLfloat
x
,
GLfloat
y
,
GLfloat
z
,
GLfloat
w
);
void
vertexAttrib4fv
(
U32
index
,
GLfloat
*
v
);
//GLint getUniformLocation(const std::string& uniform);
GLint
getUniformLocation
(
const
LLStaticHashedString
&
uniform
);
...
...
@@ -163,7 +162,7 @@ class LLGLSLShader
void
addPermutation
(
std
::
string
name
,
std
::
string
value
);
void
removePermutations
(
std
::
map
<
std
::
string
,
std
::
string
>&
map
)
{
for
(
auto
entry
:
map
)
for
(
const
auto
&
entry
:
map
)
{
mDefines
.
erase
(
entry
.
first
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment