this repo has no description
0
fork

Configure Feed

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

Added more logging to initialization.

+7 -3
+7 -3
src/renderer_GL_common.inl
··· 936 936 screen = SDL_SetVideoMode(w, h, 0, SDL_flags); 937 937 938 938 if(screen == NULL) 939 + { 940 + GPU_PushErrorCode("GPU_Init", GPU_ERROR_BACKEND_ERROR, "Screen surface creation failed."); 939 941 return NULL; 942 + } 940 943 #endif 941 944 942 945 renderer->enabled_features = 0xFFFFFFFF; // Pretend to support them all if using incompatible headers ··· 1036 1039 window = SDL_GetWindowFromID(windowID); 1037 1040 if(window == NULL) 1038 1041 { 1042 + GPU_PushErrorCode("GPU_CreateTargetFromWindow", GPU_ERROR_BACKEND_ERROR, "Failed to acquire the window from the given ID."); 1039 1043 if(created) 1040 1044 { 1041 1045 SDL_free(cdata->blit_buffer); ··· 1066 1070 screen = SDL_GetVideoSurface(); 1067 1071 if(screen == NULL) 1068 1072 { 1073 + GPU_PushErrorCode("GPU_CreateTargetFromWindow", GPU_ERROR_BACKEND_ERROR, "Failed to acquire the video surface."); 1069 1074 if(created) 1070 1075 { 1071 1076 SDL_free(cdata->blit_buffer); ··· 1128 1133 if (GLEW_OK != err) 1129 1134 { 1130 1135 // Probably don't have the right GL version for this renderer 1136 + GPU_PushErrorCode("GPU_CreateTargetFromWindow", GPU_ERROR_BACKEND_ERROR, "Failed to initialize extensions for renderer %s.", renderer->id.name); 1131 1137 target->context->failed = 1; 1132 1138 return NULL; 1133 1139 } ··· 1178 1184 // Did the wrong runtime library try to use a later versioned renderer? 1179 1185 if(renderer->id.major_version < renderer->requested_id.major_version) 1180 1186 { 1181 - #ifdef SDL_GPU_USE_GLES 1182 - GPU_PushErrorCode("GPU_CreateTargetFromWindow", GPU_ERROR_BACKEND_ERROR, "Renderer version (%d) is incompatible with the available OpenGL runtime library version (%d).", renderer->requested_id.major_version, renderer->id.major_version); 1183 - #endif 1187 + GPU_PushErrorCode("GPU_CreateTargetFromWindow", GPU_ERROR_BACKEND_ERROR, "Renderer major version (%d) is incompatible with the available OpenGL runtime library version (%d).", renderer->requested_id.major_version, renderer->id.major_version); 1184 1188 target->context->failed = 1; 1185 1189 return NULL; 1186 1190 }