|
|
@ -1748,7 +1748,6 @@ void rlTextureParameters(unsigned int id, int param, int value) |
|
|
|
#endif |
|
|
|
} |
|
|
|
else glTexParameteri(GL_TEXTURE_2D, param, value); |
|
|
|
|
|
|
|
} break; |
|
|
|
case RL_TEXTURE_MAG_FILTER: |
|
|
|
case RL_TEXTURE_MIN_FILTER: glTexParameteri(GL_TEXTURE_2D, param, value); break; |
|
|
@ -1793,7 +1792,6 @@ void rlCubemapParameters(unsigned int id, int param, int value) |
|
|
|
else TRACELOG(RL_LOG_WARNING, "GL: Clamp mirror wrap mode not supported (GL_MIRROR_CLAMP_EXT)"); |
|
|
|
} |
|
|
|
else glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value); |
|
|
|
|
|
|
|
} break; |
|
|
|
case RL_TEXTURE_MAG_FILTER: |
|
|
|
case RL_TEXTURE_MIN_FILTER: glTexParameteri(GL_TEXTURE_CUBE_MAP, param, value); break; |
|
|
@ -2112,14 +2110,12 @@ void rlSetBlendMode(int mode) |
|
|
|
{ |
|
|
|
// NOTE: Using GL blend src/dst factors and GL equation configured with rlSetBlendFactors() |
|
|
|
glBlendFunc(RLGL.State.glBlendSrcFactor, RLGL.State.glBlendDstFactor); glBlendEquation(RLGL.State.glBlendEquation); |
|
|
|
|
|
|
|
} break; |
|
|
|
case RL_BLEND_CUSTOM_SEPARATE: |
|
|
|
{ |
|
|
|
// NOTE: Using GL blend src/dst factors and GL equation configured with rlSetBlendFactorsSeparate() |
|
|
|
glBlendFuncSeparate(RLGL.State.glBlendSrcFactorRGB, RLGL.State.glBlendDestFactorRGB, RLGL.State.glBlendSrcFactorAlpha, RLGL.State.glBlendDestFactorAlpha); |
|
|
|
glBlendEquationSeparate(RLGL.State.glBlendEquationRGB, RLGL.State.glBlendEquationAlpha); |
|
|
|
|
|
|
|
} break; |
|
|
|
default: break; |
|
|
|
} |
|
|
@ -3747,19 +3743,16 @@ void rlFramebufferAttach(unsigned int fboId, unsigned int texId, int attachType, |
|
|
|
if (texType == RL_ATTACHMENT_TEXTURE2D) glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + attachType, GL_TEXTURE_2D, texId, mipLevel); |
|
|
|
else if (texType == RL_ATTACHMENT_RENDERBUFFER) glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + attachType, GL_RENDERBUFFER, texId); |
|
|
|
else if (texType >= RL_ATTACHMENT_CUBEMAP_POSITIVE_X) glFramebufferTexture2D(GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0 + attachType, GL_TEXTURE_CUBE_MAP_POSITIVE_X + texType, texId, mipLevel); |
|
|
|
|
|
|
|
} break; |
|
|
|
case RL_ATTACHMENT_DEPTH: |
|
|
|
{ |
|
|
|
if (texType == RL_ATTACHMENT_TEXTURE2D) glFramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_TEXTURE_2D, texId, mipLevel); |
|
|
|
else if (texType == RL_ATTACHMENT_RENDERBUFFER) glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_DEPTH_ATTACHMENT, GL_RENDERBUFFER, texId); |
|
|
|
|
|
|
|
} break; |
|
|
|
case RL_ATTACHMENT_STENCIL: |
|
|
|
{ |
|
|
|
if (texType == RL_ATTACHMENT_TEXTURE2D) glFramebufferTexture2D(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_TEXTURE_2D, texId, mipLevel); |
|
|
|
else if (texType == RL_ATTACHMENT_RENDERBUFFER) glFramebufferRenderbuffer(GL_FRAMEBUFFER, GL_STENCIL_ATTACHMENT, GL_RENDERBUFFER, texId); |
|
|
|
|
|
|
|
} break; |
|
|
|
default: break; |
|
|
|
} |
|
|
|