Skip to content

Commit

Permalink
Merge pull request xenia-project#533 from sephiroth99/noamd
Browse files Browse the repository at this point in the history
More shader changes
  • Loading branch information
benvanik committed Feb 16, 2016
2 parents 043e569 + 0067473 commit cc00b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/xenia/gpu/glsl_shader_translator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ vec4 cube(vec4 src0, vec4 src1) {
float s = (sc / ma + 1.0) / 2.0;
float t = (tc / ma + 1.0) / 2.0;
return vec4(t, s, 2.0 * ma, float(face_id));
};
}
)");

if (is_vertex_shader()) {
Expand Down Expand Up @@ -234,7 +234,7 @@ vec4 applyTransform(const in StateData state, vec4 pos) {
pos.xyz = mix(pos.xyz, pos.xyz / pos.w, notEqual(state.vtx_fmt.xyz, vec3(0.0)));
pos.xy *= state.window_scale.xy;
return pos;
};
}
void processVertex(const in StateData state);
void main() {
gl_Position = vec4(0.0, 0.0, 0.0, 1.0);
Expand Down
4 changes: 2 additions & 2 deletions src/xenia/ui/gl/gl_context.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ void GLContext::AssertExtensionsPresent() {
reinterpret_cast<const char*>(glGetString(GL_SHADING_LANGUAGE_VERSION));
std::string glsl_version(glsl_version_raw);
if (glsl_version.find("4.50") != 0) {
XELOGW("GLSL version reported as %s; you may have a bad time!",
glsl_version_raw);
FatalGLError("OpenGL GLSL version 4.50 is required.");
return;
}

if (!GLEW_ARB_bindless_texture || !glMakeTextureHandleResidentARB) {
Expand Down

0 comments on commit cc00b2d

Please sign in to comment.