mirror of https://github.com/xemu-project/xemu.git
add EXP macro mask arg
This commit is contained in:
parent
7356590230
commit
81f495ef8e
|
@ -292,6 +292,8 @@ static GLuint create_gl_shader(GLenum gl_shader_type,
|
|||
|
||||
NV2A_GL_DGROUP_BEGIN("Creating new %s", name);
|
||||
|
||||
NV2A_DPRINTF("compile new %s, code:\n%s\n", name, code);
|
||||
|
||||
GLuint shader = glCreateShader(gl_shader_type);
|
||||
glShaderSource(shader, 1, &code, 0);
|
||||
glCompileShader(shader);
|
||||
|
|
|
@ -698,7 +698,7 @@ static const char* vsh_header =
|
|||
" return vec4(inversesqrt(abs(src)));\n"
|
||||
"}\n"
|
||||
"\n"
|
||||
"#define EXP(dest, src) dest.mask = _EXP(_in(src).x).mask\n"
|
||||
"#define EXP(dest, mask, src) dest.mask = _EXP(_in(src).x).mask\n"
|
||||
"vec4 _EXP(float src)\n"
|
||||
"{\n"
|
||||
" return vec4(exp2(src));\n"
|
||||
|
|
Loading…
Reference in New Issue