daily update on 20241228 by nitload youmu, better dot in checking
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
GladGLContext *currentContext;
|
||||
extern char infolog[512] = { 0 };
|
||||
|
||||
SSCAPI int SSCDECL glCheckShaderStat(GladGLContext *context,
|
||||
uint64_t shaderHandle, int key,
|
||||
SSCAPI int SSCDECL glCheckShaderStat(GladGLContext *context, uint64_t shaderHandle, int key,
|
||||
char **logRef)
|
||||
{
|
||||
int stat = 0;
|
||||
@@ -42,8 +41,7 @@ SSCAPI GLFWglproc SSCDECL loadGlfuncDefault(char *procName)
|
||||
return (GLFWglproc)ret;
|
||||
}
|
||||
|
||||
SSCAPI unsigned int linkShaderProgram(GladGLContext *context,
|
||||
GLuint shaderProgram)
|
||||
SSCAPI unsigned int linkShaderProgram(GladGLContext *context, GLuint shaderProgram)
|
||||
{
|
||||
context->LinkProgram(shaderProgram);
|
||||
|
||||
@@ -57,14 +55,12 @@ SSCAPI unsigned int linkShaderProgram(GladGLContext *context,
|
||||
}
|
||||
}
|
||||
|
||||
SSCAPI void SSCDECL loadImageData(char *location, Image *out,
|
||||
imageLoader loader)
|
||||
SSCAPI void SSCDECL loadImageData(char *location, Image *out, imageLoader loader)
|
||||
{
|
||||
if (loader == NULL) {
|
||||
loader = stbi_load;
|
||||
}
|
||||
out->pixelPtr = loader(location, &(out->width), &(out->height),
|
||||
&(out->channel), 0);
|
||||
out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
|
||||
}
|
||||
|
||||
SSCAPI void SSCDECL unloadImageData(Image *out)
|
||||
|
||||
Reference in New Issue
Block a user