mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
ogl: support glsl120
This commit is contained in:
parent
3897e1959e
commit
4c40e70b8a
8 changed files with 92 additions and 56 deletions
|
@ -598,9 +598,9 @@ const char *GeneratePixelShaderCode(DSTALPHA_MODE dstAlphaMode, API_TYPE ApiType
|
|||
|
||||
if (ApiType == API_OPENGL)
|
||||
{
|
||||
WRITE(p, "out float4 ocol0;\n");
|
||||
WRITE(p, "COLOROUT(ocol0)\n");
|
||||
if (dstAlphaMode == DSTALPHA_DUAL_SOURCE_BLEND)
|
||||
WRITE(p, "out float4 ocol1;\n");
|
||||
WRITE(p, "COLOROUT(ocol1)\n");
|
||||
|
||||
if (per_pixel_depth)
|
||||
WRITE(p, "#define depth gl_FragDepth\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue