mirror of https://github.com/bjornbytes/lovr.git
Small fixes for WebVR;
This commit is contained in:
parent
8e686bba92
commit
da0afb487c
|
@ -215,12 +215,6 @@ void lovrGraphicsCreateWindow(int w, int h, bool fullscreen, int msaa, const cha
|
|||
} else {
|
||||
glDisable(GL_FRAMEBUFFER_SRGB);
|
||||
}
|
||||
#else
|
||||
if (state.gammaCorrect) {
|
||||
glEnable(GL_FRAMEBUFFER_SRGB_EXT);
|
||||
} else {
|
||||
glDisable(GL_FRAMEBUFFER_SRGB_EXT);
|
||||
}
|
||||
#endif
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
|
|
@ -146,6 +146,10 @@ Shader* lovrShaderCreate(const char* vertexSource, const char* fragmentSource) {
|
|||
float defaultVertexColor[4] = { 1., 1., 1., 1. };
|
||||
glVertexAttrib4fv(LOVR_SHADER_VERTEX_COLOR, defaultVertexColor);
|
||||
|
||||
// Set default bone ids
|
||||
int defaultBones[4] = { 0., 0., 0., 0. };
|
||||
glVertexAttribI4iv(LOVR_SHADER_BONES, defaultBones);
|
||||
|
||||
// Set default bone weights
|
||||
float defaultBoneWeights[4] = { 1., 0., 0., 0. };
|
||||
glVertexAttrib4fv(LOVR_SHADER_BONE_WEIGHTS, defaultBoneWeights);
|
||||
|
|
Loading…
Reference in New Issue