Lines 196-204
set_new_implementation() {
Link Here
|
196 |
fi |
196 |
fi |
197 |
|
197 |
|
198 |
echo -n "Switching to ${gl_implem} OpenGL interface..." |
198 |
echo -n "Switching to ${gl_implem} OpenGL interface..." |
199 |
if [[ -f ${ENV_FILE} ]] ; then |
|
|
200 |
rm -f "${ENV_FILE}" || die -q "Failed to remove ${ENV_FILE}" |
201 |
fi |
202 |
|
199 |
|
203 |
for libdir in $(list_libdirs); do |
200 |
for libdir in $(list_libdirs); do |
204 |
# Set libdir correctly to EROOT |
201 |
# Set libdir correctly to EROOT |
Lines 269-276
set_new_implementation() {
Link Here
|
269 |
fi |
266 |
fi |
270 |
done |
267 |
done |
271 |
|
268 |
|
272 |
store_config ${ENV_FILE} LDPATH "${ldpath}" |
269 |
# Update the file atomically. #508708 |
273 |
store_config ${ENV_FILE} OPENGL_PROFILE "${gl_implem}" |
270 |
store_config "${ENV_FILE}~" LDPATH "${ldpath}" |
|
|
271 |
store_config "${ENV_FILE}~" OPENGL_PROFILE "${gl_implem}" |
272 |
mv -f "${ENV_FILE}~" "${ENV_FILE}" || die -q "could not update ${ENV_FILE}" |
274 |
|
273 |
|
275 |
do_action env update &> /dev/null |
274 |
do_action env update &> /dev/null |
276 |
|
275 |
|
277 |
- |
|
|