daily update on 20250220 by nitload youmu, building AST generator, correct type naming
This commit is contained in:
@@ -2,9 +2,10 @@
|
||||
#include "gl.h"
|
||||
#include "glfw3.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
GladGLContext *currentContext;
|
||||
extern char infolog[512] = { 0 };
|
||||
extern char infolog[512];
|
||||
|
||||
SSCAPI int SSCDECL glCheckShaderStat(GladGLContext *context, uint64_t shaderHandle, int key,
|
||||
char **logRef)
|
||||
@@ -30,12 +31,12 @@ SSCAPI GLFWglproc SSCDECL loadGlfuncDefault(char *procName)
|
||||
{
|
||||
void *ret = glfwGetProcAddress(procName);
|
||||
// printf("%llu\n", (uint64_t)ret);
|
||||
if (ret = NULL) {
|
||||
*infolog = "Failed to load OpenGL api:";
|
||||
if (ret == NULL) {
|
||||
strcpy_s(infolog,30, "Failed to load OpenGL api:");
|
||||
for (size_t i = 0; i < sizeof(procName); i++) {
|
||||
infolog[30 + i] = procName[i];
|
||||
}
|
||||
printf("%s\n", infolog);
|
||||
//printf("%s\n", infolog);
|
||||
}
|
||||
return (GLFWglproc)ret;
|
||||
}
|
||||
@@ -67,8 +68,8 @@ SSCAPI void SSCDECL unloadImageData(Image *out)
|
||||
free(out->pixelPtr);
|
||||
}
|
||||
|
||||
char *_cdecl readLog()
|
||||
char *SSCDECL readLog()
|
||||
{
|
||||
infolog[511] = '\0';
|
||||
return &infolog;
|
||||
return infolog;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user