Skip to content
Snippets Groups Projects
Commit 78e7ada9 authored by Brad Linden's avatar Brad Linden
Browse files

Mac shader and assertion fixes for DRTVWR-559

parent 46b2c066
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -1363,7 +1363,7 @@ void LLVertexBuffer::setBuffer()
U32 data_mask = LLGLSLShader::sCurBoundShaderPtr->mAttributeMask;
// this Vertex Buffer must provide all necessary attributes for currently bound shader
llassert(((~data_mask & mTypeMask) > 0) || (mTypeMask == data_mask));
llassert((data_mask & mTypeMask) == data_mask);
if (sGLRenderBuffer != mGLBuffer)
{
......
......@@ -26,15 +26,12 @@
uniform mat4 modelview_projection_matrix;
in vec3 position;
in vec4 diffuse_color;
out vec4 vertex_color;
out vec2 vary_texcoord0;
void main()
{
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
vary_texcoord0 = position.xy*0.5+0.5;
vertex_color = diffuse_color;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment