this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Started using glewExperimental, which makes GLEW ignore the extension string when setting up function pointers.

+16 -4
+15 -4
demos/3d/main.c
··· 126 126 int main(int argc, char* argv[]) 127 127 { 128 128 GPU_Target* screen; 129 - 129 + 130 + GPU_SetRequiredFeatures(GPU_FEATURE_BASIC_SHADERS); 130 131 screen = GPU_InitRenderer(GPU_RENDERER_OPENGL_1, 800, 600, GPU_DEFAULT_INIT_FLAGS); 131 - if(screen == NULL) 132 - return -1; 132 + if(screen == NULL) 133 + { 134 + GPU_LogError("Initialization Error: Could not create a renderer with proper feature support for this demo.\n"); 135 + return 1; 136 + } 137 + 138 + glewExperimental = GL_TRUE; // Force GLEW to get exported functions instead of checking via extension string 139 + if(glewInit() != GLEW_OK) 140 + { 141 + GPU_LogError("Initialization Error: Failed to initialize GLEW.\n"); 142 + return 2; 143 + } 133 144 134 145 { 135 146 GPU_Image* image; ··· 148 159 149 160 image = GPU_LoadImage("data/test.bmp"); 150 161 if (image == NULL) 151 - return -1; 162 + return 3; 152 163 153 164 v = GPU_LoadShader(GPU_VERTEX_SHADER, "data/shaders/untextured.vert"); 154 165 f = GPU_LoadShader(GPU_FRAGMENT_SHADER, "data/shaders/untextured.frag");
+1
src/renderer_GL_common.inl
··· 1082 1082 cdata->last_camera_inverted = 0; 1083 1083 1084 1084 #ifdef SDL_GPU_USE_OPENGL 1085 + glewExperimental = GL_TRUE; // Force GLEW to get exported functions instead of checking via extension string 1085 1086 err = glewInit(); 1086 1087 if (GLEW_OK != err) 1087 1088 {