In Linux, X61 can also use wine to simulate Starcraft.

Source: Internet
Author: User
In Linux, X61 can also use wine to simulate Starcraft-general Linux technology-Linux technology and application information. The following is a detailed description. Author: forever steel (zhoun)
Primary: http://guo9310.blog.163.com/

Because of a bug in Mesa, if it is an intel X3100 graphics card (using intel's i965 driver) and running Starcraft with wine, an error will be reported and exited.

This patch solves this problem.

Finally, we can play Starcraft in Linux.
CODE: --- a/src/mesa/shader/arbprogram. c
++ B/src/mesa/shader/arbprogram. c
@-229,7 + 229,7 @ _ mesa_ProgramStringARB (GLenum target, GL
Struct gl_vertex_program * prog = ctx-> VertexProgram. Current;
_ Mesa_parse_arb_vertex_program (ctx, target, string, len, prog );

-If (ctx-> Driver. programstringy y)
+ If (ctx-> Program. ErrorPos =-1 & ctx-> Driver. programstringy y)
Ctx-> Driver. ProgramStringNotify (ctx, target, & prog-> Base );
}
Else if (target = GL_FRAGMENT_PROGRAM_ARB
@-237,7 + 237,7 @ _ mesa_ProgramStringARB (GLenum target, GL
Struct gl_fragment_program * prog = ctx-> FragmentProgram. Current;
_ Mesa_parse_arb_fragment_program (ctx, target, string, len, prog );

-If (ctx-> Driver. programstringy y)
+ If (ctx-> Program. ErrorPos =-1 & ctx-> Driver. programstringy y)
Ctx-> Driver. ProgramStringNotify (ctx, target, & prog-> Base );
}
Else {
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.